🎯 Docx2JSX is a web tool to convert .docx (Microsoft Word) files into clean HTML/JSX code that can be easily integrated into React projects.
It’s ideal for importing structured content such as Terms & Conditions, Privacy Policies, contracts, documentation, manuals, and more — while preserving the basic formatting and structure.
- ✅ Support for
.docxfiles created in Microsoft Word. - ✅ Clean conversion powered by Mammoth.js.
- ✅ Instant preview of the converted content.
- ✅ One-click button to copy the generated code.
- ✅ Toggle between plain output and formatted (indented) code.
- ✅ Simple UI, lightweight, with no heavy dependencies.
git clone https://github.com/angelyrg/Docx2JSX
cd docx2jsxnpm installnpm run devOpen http://localhost:5173 in your browser.
Contributions are welcome! You can open issues, suggestions, or pull requests to help improve this tool.
Created by Angel Yaranga
This tool does not include advanced styles or complex formatting (colors, margins, fonts). It focuses on a clean structural conversion, making it ideal for legal documents and other static content.