Word to PDF Converter

Convert .docx files to PDF in your browser. Your files never leave your device.

📄
Drop .docx files here or click to select

.docx format supported · Multiple files allowed

ℹ️ How it works: This tool uses the Mammoth.js library to convert DOCX to HTML, then renders it as a PDF using the browser's built-in print engine. Complex formatting (tables, images) is preserved as best as possible.
${result.value}`; const blob = new Blob([html], { type: 'text/html' }); f.url = URL.createObjectURL(blob); f.htmlContent = html; f.status = 'done'; document.getElementById('fill-'+i).style.width = '100%'; document.getElementById('badge-'+i).textContent = '✓ Done'; document.getElementById('badge-'+i).className = 'status-badge status-done'; } catch(e) { f.status = 'error'; document.getElementById('badge-'+i).textContent = '✗ Error'; document.getElementById('badge-'+i).className = 'status-badge status-error'; } render(); } function downloadFile(i) { const f = files[i]; if (!f.htmlContent) return; // Open in new window and trigger print-to-PDF const win = window.open('', '_blank'); win.document.write(f.htmlContent); win.document.close(); win.onload = () => { setTimeout(() => { win.print(); }, 500); }; } function esc(s) { return s.replace(/&/g,'&').replace(//g,'>'); }