Word to PDF
Turn a Word .docx file into a PDF with selectable, searchable text. Headings, paragraphs, bold and italic, lists, simple tables and PNG or JPEG pictures come across; complex page layout may not look identical to Word.
Your document is converted inside your browser. Neither the .docx nor the PDF is sent to our server.
How to use the Word to PDF
- Drop your .docx file onto the box, or click to choose it. If you only have a .doc file, save it as .docx in Word, LibreOffice or Google Docs first.
- Pick a page size (A4 or US Letter) and how wide you want the margins.
- Press Convert to PDF. The PDF downloads with the same name as your document.
- Read any notice under the result: it tells you if pictures were left out or some formatting could not be carried over.
- Open the PDF and check it before you send it, especially if the original has a detailed layout.
How the conversion works
A .docx file is a zipped bundle of XML. The open-source Mammoth library reads the document's structure (headings, paragraphs, bold and italic, lists, tables, links and pictures) and turns it into simple HTML. The html-to-pdfmake library then maps that HTML onto pdfmake, which lays the text out on pages and writes the PDF. Text is embedded with the Roboto font, so the PDF's words can be selected, copied and searched, and accented letters such as ő, ü or é come through correctly.
Because Mammoth deliberately focuses on structure rather than appearance, the PDF is a clean re-typeset version of your content, not a pixel copy of the Word page. Line and page breaks will usually fall in different places than in Word.
What may look different
- Fonts: everything is set in Roboto. Your document's own fonts, font sizes and colors are not reproduced.
- Page layout: headers and footers, page numbers, columns, text boxes, footnote placement, section breaks and manual page breaks are not kept.
- Tables: simple tables convert well and are stretched to the page width. Merged cells, shading and custom borders may differ.
- Pictures: PNG and JPEG images are included, scaled down if they are wider than the page. Charts, SmartArt, shapes and EMF/WMF drawings are left out, and the tool tells you when that happens.
- Scripts: the built-in font covers Latin, Greek and Cyrillic letters. Text in scripts such as Chinese, Japanese, Korean or Arabic will not display properly.
If the PDF has to match the Word layout exactly, for a printed form or a designed brochure, use File › Save As › PDF in Word or Export as PDF in LibreOffice instead. This tool is meant for the everyday case: getting a readable, shareable PDF of a letter, report or set of notes without installing anything.
Frequently asked questions
Can I convert an old .doc file?
No. The .doc format used by Word 97–2003 is a different, binary format that this tool cannot read. Open it in Word, LibreOffice or Google Docs, save it as .docx, and convert that.
Will the PDF look exactly like my Word document?
Not exactly. The content and its basic structure are kept, but the PDF uses one font (Roboto), and headers, footers, columns, text boxes and exact page breaks are not reproduced. For a pixel-perfect copy, export to PDF from Word itself.
Is the text in the PDF selectable?
Yes. The PDF contains real text, not a picture of the page, so you can select, copy and search it.
Is my document uploaded?
No. The file is read and converted by JavaScript in your browser, and the PDF is created on your device. The conversion libraries are loaded from the jsDelivr CDN, but your document does not leave your computer.
Why are some of my images missing?
Only PNG and JPEG pictures can be placed in the PDF. Charts, shapes, SmartArt and older EMF or WMF graphics are skipped, and a notice tells you how many were left out.
Sources: Mammoth .docx to HTML converter (README: what it does and does not convert); pdfmake documentation