Convert a Word Document to PDF

Converting a Word document to PDF freezes its editable, reflowing content into fixed pages that look the same on every device. The most faithful conversion comes from the application that laid the document out: Word's own File > Export command, or LibreOffice for machines without Word. This page walks through three reliable methods — Word's exporter, the LibreOffice command line, and print to PDF — and explains when each one is the right choice.

Why there is no one-click converter on this page

Rendering a Word file needs Word's layout engine — pagination, font metrics, tables, floating images, fields — which browsers do not contain and cannot faithfully reproduce in client-side JavaScript. "Online converters" that appear to do it in the browser actually upload your document to a server. The methods below convert reliably and keep the file on your machine.

Disclosure: this page contains affiliate placeholder links. If they were live, we could earn a commission at no extra cost to you.

AFFILIATE PLACEHOLDER: Recommended desktop PDF suite (placeholder link)

How to convert Word to PDF (step by step)

Method 1 — Export from Microsoft Word (best fidelity)

  1. Open the document in Word and check it in Print Layout view — the PDF will match exactly what you see here, including the page count.
  2. Windows: go to File > Export > Create PDF/XPS Document > Create PDF/XPS. Mac: go to File > Save As and choose PDF in the File Format list (pick "Best for electronic distribution" to keep hyperlinks).
  3. Click Options (Windows) to enable Create bookmarks using: Headings, include document properties, or select PDF/A compliant for archival use.
  4. Click Publish (Windows) or Export (Mac), then open the result and spot-check page breaks, images, and links.

Method 2 — LibreOffice, including the headless command line

  1. Install LibreOffice (free). Open the .docx in Writer and choose File > Export As > Export as PDF; the dialog offers image compression, PDF/A, and password options.
  2. For batch or scripted conversion, use the command line — no window opens at all:
    soffice --headless --convert-to pdf file.docx
    Convert a whole folder with soffice --headless --convert-to pdf *.docx --outdir pdf/.
  3. Check the output: LibreOffice's layout engine is independent of Word's, so long documents can drift by a line here and there. For contracts where pagination matters, compare page counts.

Method 3 — Print to PDF (any application, lowest features)

  1. Open the document and press Ctrl+P (Windows) or Cmd+P (Mac).
  2. Choose Microsoft Print to PDF as the printer, or on Mac use the PDF dropdown at the bottom-left and pick Save as PDF.
  3. Save. This route always works, but it goes through the print pipeline: no PDF bookmarks, usually no clickable hyperlinks, and no PDF/A option.

How it works

A .docx file does not contain pages. It is a ZIP of XML parts — document.xml holds the text and formatting properties, other parts hold styles, numbering, images, and settings — and nowhere does it say where page 2 begins. Pages exist only after a layout engine measures every character against font metrics, applies paragraph spacing, widow/orphan rules, table layout, and floating-object anchoring, and breaks the resulting stream into page-sized chunks.

PDF is the opposite kind of format: it stores the result of layout. Each page is a fixed-size canvas with a content stream of positioned drawing operators ("place these glyphs at these coordinates"), plus embedded font programs so the glyphs render identically everywhere. Converting Word to PDF therefore means running layout once, then recording the placed output — which is why the converter's layout engine determines fidelity. Word's exporter is definitionally correct, because the same engine that shows you the document generates the PDF. LibreOffice re-implements the rules and gets extremely close; small differences in line-breaking or font substitution occasionally move a page break.

Font embedding is the other pillar. The exporter subsets each font — embedding only the glyphs actually used — so the PDF renders identically on machines without the fonts installed. If a font's license forbids embedding, the exporter substitutes a metric-compatible font, which is the usual cause of "the PDF looks slightly different" complaints.

Worked example: a 24-page report, three ways

A real 24-page consulting report (.docx, 3.4 MB: text, 14 photos, 6 tables, heading styles throughout) converted by each method on the same machine. Word's exporter produced a 2.1 MB PDF in 3 seconds, with working hyperlinks and a bookmark panel generated from the Heading 1/Heading 2 styles. LibreOffice headless produced a 2.3 MB PDF in 6 seconds; pagination matched Word for 23 of 24 pages, with one table pushed to the next page because of a slightly different row-height calculation. Print to PDF produced a 5.8 MB file — larger because print pipelines often rasterize more content — with correct layout but no bookmarks and dead hyperlinks.

The photos explain the size drop from 3.4 MB to 2.1 MB: Word's exporter downsampled images to 220 PPI by default, which is invisible in print but nearly halves image weight. If you need the originals untouched, set image quality to "High fidelity" in Word's options before exporting.

Word to PDF — frequently asked questions

What is the best way to convert Word to PDF without losing formatting?

Export from Microsoft Word itself (File, Export, Create PDF/XPS on Windows), because the same layout engine that paginated the document produces the PDF. Any other converter re-implements Word's layout rules and can shift line breaks or page breaks.

Can I convert Word to PDF without having Microsoft Word installed?

Yes. LibreOffice opens .docx and .doc files and exports PDF, either from its menus or with the command soffice --headless --convert-to pdf file.docx. Fidelity is very good for ordinary documents, though complex layouts may paginate slightly differently than Word would.

Why is there no in-browser Word to PDF converter on this site?

Rendering a Word file requires a full word-processing layout engine — pagination, font metrics, floating objects, fields — which browsers do not contain and which is too large to ship as trustworthy client-side JavaScript. Converters that run in a browser page actually upload your file to a server, which this site does not do.

Does converting Word to PDF keep hyperlinks and bookmarks?

Word's exporter keeps hyperlinks, and it can generate PDF bookmarks from your heading styles if you enable that in the export options. Printing to PDF, by contrast, produces only fixed page images of the text and drops live links in most cases.

Will the PDF look the same on a computer without my fonts?

Yes, if the exporter embeds the fonts, which Word and LibreOffice do by default for licensed embeddable fonts. The glyph outlines travel inside the PDF, so the document renders identically even where the fonts are not installed.

Related tools