How to Convert Word to PDF
If you have Word, File > Save As > PDF is the easiest path. Without Word, LibreOffice does the same job free: one command turns a .docx into a PDF that keeps the headings, the table, and the layout. Here is the exact flow, tested.
At a glance
- LibreOffice converts .docx to PDF with one command — no Word, no account, no upload.
- The PDF keeps headings, paragraphs, and tables in place.
- Tested 6 November 2026: a .docx with a heading and a 3 by 3 table became a 1-page PDF of 19,422 bytes.
- Track changes and comments do not carry over — the PDF shows the final text.
- PDF Probe does not convert Word to PDF. It converts PDF tables to Excel — a different job.
Steps
- Install LibreOffice (free from libreoffice.org) or check it is there:
soffice --version. The test used LibreOffice 24.2.7.2. - Convert:
soffice --headless --convert-to pdf your-file.docx— the PDF appears next to the document, same name, .pdf ending. - Check the result:
pdftotext your-file.pdf -should show your headings and table. On the test file, a .docx with a heading and a 3 by 3 table became a 1-page PDF. - If text shifts or wraps differently, the document uses a font LibreOffice does not have. Install the font, or change the font in the document and convert again.
- For many files at once, pass them all in one command:
soffice --headless --convert-to pdf *.docx.
Worked example (tested 6 November 2026)
I tested this with a .docx made with python-docx (36,840 bytes: a level-1 heading, one paragraph, and a 3 by 3 table). soffice --headless --convert-to pdf sample.docx produced a 1-page PDF of 19,422 bytes, and pdftotext read it back — heading, paragraph, and all 9 table cells in place.
What it can't do (tested)
- Tracked changes: the PDF shows the final text. Insertions, deletions, and comments do not appear — accept or reject changes in Word first if they matter.
- Missing fonts: if the document uses a font LibreOffice does not have, a substitute font is used and spacing can shift. Install the font or change it in the document.
- Complex layouts: documents with floating text boxes or embedded objects usually convert, but intricate layouts can move. Check the PDF before you send it.
- Editing: the result is a PDF. To change the text, edit the .docx and convert again.
Free alternatives, honestly compared
- Word itself: File > Save As > PDF is the most faithful converter if you have Word — it knows its own formatting best.
- Google Docs: File > Download > PDF works from any browser, no install. Word-specific features can shift on import.
- Print to PDF: any word processor can print to a PDF file. It works, but page breaks and margins are harder to control than a real export.
PDF Probe converts in the other direction — PDF tables and bank statements to Excel. If that is the job, see How to Convert PDF to Excel.
Frequently asked questions
Will the layout change?
For ordinary documents — headings, paragraphs, tables — no. For documents with unusual fonts, text boxes, or tracked changes, check the PDF: fonts may substitute and tracked changes disappear.
Is LibreOffice really free?
Yes, LibreOffice is free and open source, for Windows, macOS, and Linux. There is no account, no trial, and no page limit.
Can I convert many documents at once?
Yes. Pass several files — or *.docx — to the same soffice command and it converts each one in turn.
Do I need Word installed?
No. LibreOffice reads .docx files on its own. You only need Word if you want Word's own export, which is the most faithful option for complex files.
Related guides: How to Convert PDF to Excel · How to Convert PDF to Word · How to Convert Excel to PDF · How to Edit a PDF · All guides · Tool: PDF Probe