Equation Cleaner & Formatter
Tidy up messy maths and chemistry equations from AI chats, or upload entire Word (.docx) and PDF documents to format embedded LaTeX formulas while leaving all other text untouched.
Your Equation
Result
WaitingFull Document & Equation Processing
Whether you are cleaning a single formula copied from ChatGPT or formatting an entire research paper containing dozens of inline and display equations, this tool runs 100% locally in your browser memory.
Upload `.docx` or `.pdf` files. The tokenizer scans paragraphs for embedded LaTeX delimiters (`$...$`, `$$...$$`, `\[...\]`, `\begin{align}`) and replaces *only* the math while leaving all normal paragraphs and headings unchanged.
Exported `.docx` documents use native Microsoft Office Math Markup (`<m:oMath>`). You can click and edit any equation directly in Word without needing MathType or third-party add-ins.
Configure your document page size (A4, US Letter, Legal), margins (0.5", 1.0", 1.5"), orientation, and font scale with live paginated paper preview and print-to-PDF export.
Word & PDF Export Capabilities
- Single Equation: Click Copy for Word (Ctrl + V) to copy multi-mime MathML, or Copy LaTeX (Word Alt + =) to paste into Word's equation box.
- Full Document (.docx): Click Download Word (.docx) to receive a clean Word file with native editable equations.
- Custom PDF: Use the Page Formatting toolbar to switch between A4, US Letter, and Legal paper sizes, adjust margins, and click Save / Print PDF.
Frequently Asked Questions
Are my uploaded documents sent to any server?
No! Zero bytes are uploaded. Document parsing (JSZip and PDF.js), equation typesetting (KaTeX), and Word compilation (docx) run 100% locally on your computer inside browser memory.
What delimiters are recognized in uploaded documents?
The document tokenizer recognizes standard inline math (`$formula$` and `\(formula\)`), display math (`$$formula$$` and `\[formula\]`), and multi-line LaTeX environments (`\begin{align}...\end{align}`, `\begin{matrix}`, `\begin{cases}`).
Can it sort and prettify un-delimited or bare LaTeX formulas in rich text?
Yes! In the Prettify Rich Text & Math tab, the intelligent tokenizer detects bare math commands (such as 10\{,Dq}, \Delta_o, subscripts t_{2g}, e_g, superscripts, fractions, and multi-term display equations) mixed within plain English sentences without needing existing dollar delimiters.
Can I edit detected equations before downloading?
Yes! In both Document and Rich Text live views, click on any equation to inspect and review its raw LaTeX code or copy its MathML representation.
More from Alok Das
These interactive tools are personal side-projects built for exploration and utility. My primary professional commitment is in M.Sc. Chemistry, analytical research, and laboratory methodology.