Loading tool...
Convert DOCX and TXT to PDF — entirely in your browser
This tool uses two open-source JavaScript libraries that run locally:- mammoth.js — parses the Open XML format inside a .docx file (which is actually a ZIP archive containing XML documents). It extracts the text content, headings, bold/italic marks, and list structures.
- jsPDF — takes the extracted content and renders it to a standard A4 PDF, handling text layout, line wrapping, and page breaks.
What is and isn't preserved
Because the conversion runs in a browser without Microsoft Word's rendering engine, not all Word formatting translates perfectly:| Element | Status |
|---|---|
| Text content | ✅ Fully preserved |
| Bold, italic, underline | ✅ Preserved |
| Headings (H1–H6) | ✅ Preserved with size hierarchy |
| Bullet and numbered lists | ✅ Preserved |
| Tables (basic) | ⚠️ Simplified (no merged cells) |
| Embedded images | ⚠️ Omitted in current version |
| Complex page layouts | ⚠️ Normalised to single-column |
| Track changes / comments | ❌ Not supported |
| Custom fonts | ❌ Replaced with PDF standard fonts |
For simple documents — resumes, essays, reports, letters — the output is clean and professional. For complex multi-column Word templates, a desktop tool with the full Word rendering engine will give better fidelity.
How to convert your document
- Upload — Drop a .docx or .txt file. mammoth.js reads the DOCX ZIP container and extracts document.xml.
- Conversion runs automatically — jsPDF renders the content to A4 layout.
- Download — Click Download to save your PDF, compatible with all standard PDF viewers.