What this Word to PDF converter does
A PDF looks the same on every device and is what most forms, job portals and print shops ask for. This tool turns a Word document (.docx) or a plain text file (.txt) into a PDF without sending it anywhere. The open source library mammoth reads the document's structure: headings, paragraphs, bold and italic text, lists, tables, images, links and page breaks. The tool then lays that content out on Letter or A4 pages and writes it with real text, so the PDF stays small and you can still select, search and copy every word.
It is not a copy of Word's own layout engine. Word documents can hold a lot that has no direct place in a simple page flow, and the tool is open about it. The preview shows the first pages before you download, and the notes under the summary tell you when characters, images or notes needed special handling.
What is kept and what is simplified
| In your Word file | In the PDF |
|---|---|
| Text, paragraphs, alignment (left, centered, right, justified) | Kept, as selectable text |
| Title and Heading 1 to 6 styles | Kept, in sizes set by the tool |
| Bold, italic, underline, strikethrough, superscript, subscript, highlight | Kept |
| Font sizes set on the text | Kept |
| The fonts used in the document | Replaced by the font you pick here |
| Bulleted and numbered lists, with levels | Kept; numbers count 1, a, i by level |
| Tables, merged cells | Kept, with column widths worked out again and thin borders; cell colors are not |
| Pictures (JPG, PNG, GIF and other web formats) | Kept at their size in the document, in the text flow |
| EMF and WMF drawings, charts, shapes | Not shown; a note marks the place |
| Links | Kept and clickable |
| Page breaks | Kept |
| Footnotes and endnotes | Listed at the end under Notes |
| Headers, footers, columns, text box positions | Not rebuilt; text box text follows its paragraph |
| Tracked changes | Shown as if all changes were accepted |
| Comments | Left out |
The handling of text boxes, notes and tracked changes follows how mammoth reads a document: its documentation says the contents of a text box are treated as a separate paragraph after the paragraph that holds it, and its document reader skips deleted text and reads inserted text. Comments are left out here on purpose, because they are notes for the authors, not part of the document.
Fonts and special characters
Three fonts are available. Sans serif is Liberation Sans, a free font that comes with the PDF viewer library pdf.js; only the letters your document uses are embedded, which keeps the file small. It covers Latin, Greek and Cyrillic letters and the usual punctuation and symbols. Serif and Monospace use Times and Courier, two of the 14 standard fonts of the PDF format. The PDF standard, ISO 32000-1 in section 9.6.2.2, says these fonts, or their metrics and suitable substitutes, shall be available to the PDF reader, so they are not embedded and the file stays smaller. Their character set, listed in Annex D of the standard, covers Western European letters; any other character in the text is taken from Liberation Sans so it still shows. Text set in a monospace font in Word, like Consolas or Courier New, stays monospace.
Characters none of these fonts has, such as Chinese, Japanese, Korean, Arabic, Hebrew, Devanagari or emoji, are replaced by a question mark, and the tool tells you how many there were. Right-to-left text would also come out in the wrong order, so for those languages save the PDF from Word or another word processor instead.
Old .doc files and other formats
Word 97, 2000, 2002 and 2003 saved documents in the Word Binary File Format, described by Microsoft in its [MS-DOC] specification. That is a different format from .docx, which is based on the Office Open XML standard, ECMA-376, and this tool reads only .docx. To convert an old file, open it in Word and choose File, Info, Convert, as Microsoft describes in its compatibility mode help, then save. In other word processors, save a copy as .docx. The same goes for .odt and .rtf files. A Word file with a password cannot be opened here either: remove the password in Word, save, and try again.
How to convert Word to PDF
- 1Drop your .docx or .txt file on the box, or tap it to choose a file on your phone.
- 2Pick Letter or A4, the margins, the font and whether you want page numbers. The PDF is made again after every change.
- 3Look through the preview of the first pages and read the notes, then press Download PDF.
Going the other way? PDF to Word turns a PDF back into an editable document. To put several PDFs together, use Merge PDF, and to make a large PDF smaller for email, Compress PDF.
Sources
- mammoth.js documentation: what the library reads from a .docx file, text boxes as separate paragraphs
- ISO 32000-1:2008, Portable Document Format, Adobe copy: 9.6.2.2 standard 14 fonts, Annex D character sets
- [MS-DOC]: Word (.doc) Binary File Format, Microsoft: the format of Word 97 to 2003
- Using compatibility mode in Word, Microsoft Support: File, Info, Convert
Guides on this topic
- How to Make a PDF Accessible: Tags, Reading Order, PDF/UA
- PDF or Word? What Changes When You Convert Either Way
- DOCX vs ODT vs RTF: Which Document Format to Use
Frequently asked questions
Is my Word file uploaded?
No. Your browser opens the .docx file, lays out the pages and writes the PDF on your own device. Nothing is sent to a server, so contracts, letters and CVs stay private. The page only downloads the program code and a font file the first time you convert.
Will the PDF look exactly like my Word document?
Not exactly. The text, headings, bold and italic, lists, tables, images, links and page breaks come across, but the pages are laid out again by this tool. Your document's fonts are replaced by the font you pick here, so lines and pages break in different places. Headers, footers, text boxes in their own position, columns and footnotes at the bottom of the page are not rebuilt. If the PDF has to match Word line for line, save it as PDF from Word itself.
Can I select and search the text in the PDF?
Yes. The text is written as real text with an embedded font, not as a picture, so you can select it, search it, copy it and read it with a screen reader. Links stay clickable.
Why do some characters show as a question mark?
The PDF uses fonts that cover Latin, Greek and Cyrillic letters and common symbols. Characters outside them, such as Chinese, Japanese, Korean, Arabic, Hebrew, Hindi or emoji, cannot be drawn and are replaced by a question mark. The tool tells you how many characters were replaced and shows a few of them.
Can I convert an old .doc file?
No. Files from Word 97 to 2003 (.doc) use an older binary format that this tool cannot read. Open the file in Word and choose File, Info, Convert, then save it, or save a copy as .docx in the program you use. Then drop the .docx here. Password protected Word files have to be saved without the password first.
Does it work on a phone?
Yes, it runs in current mobile browsers too. Very long documents with many photos take longer on a phone and need more memory; the progress bar shows how far it is.