PDF to Word
Published Updated
Copy the text of every PDF page into an editable .docx file. Layout, images and tables are not carried over.
This gets you the words, not the layout
The converter reads the text layer of each page with pdf.js and writes it into a new Word file as plain paragraphs, one page after another with a page break between them. Nothing else is copied: no fonts, no bold or italics, no images, no tables, no columns.
That is the right result when you want to quote, translate or reuse the wording of a contract or report. It is the wrong one when the Word file has to look like the PDF. For that you need a desktop converter that rebuilds the layout.
What carries over
| In the PDF | In the .docx |
|---|---|
| Body text | Kept, in the order pdf.js reads it |
| Paragraph breaks | Rebuilt from line gaps, font size changes and bullets; paragraphs marked only by an indent run together |
| Headings, bold, italics, font sizes | All plain text in the app's default style |
| Tables | Cell text runs together; rows with space between them become separate paragraphs |
| Bullets | Each item starts a new paragraph, with the bullet character kept at its start |
| Images, charts, signatures | Dropped |
| Page breaks | One Word page break after each PDF page |
| Scanned pages | Empty, because there is no text layer to read |
Ways to get a better result
Some routes give more structure, depending on what you need:
- Need headings, lists and paragraph breaks? PDF to Markdown looks at font sizes, bullets and line gaps to rebuild them, and Markdown to Word can turn that into a .docx.
- Only proofreading? PDF to Text uses the same text reader and saves a .txt file.
- A table you want in a spreadsheet: PDF to Excel.
- Locked file: Unlock PDF first, if you know the password.
Paper size in the Word file
The Word file takes its paper size from the first page of the PDF as it is displayed (after any rotation and crop box), and sets 1-inch margins. We ran the extractor's page loop and lib/docxBuilder.ts in Node 22.23.1 on PDFs generated with pdf-lib 1.17.1, read through pdf.js 5.4.624, and read the DOCX back with python-docx 1.2.0. The same PDF to Word code, run in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app), wrote the same page sizes for the landscape, Letter and cropped test files.
| Word page (python-docx) | Margins | |
|---|---|---|
| A4 portrait | 210.0 x 297.0 mm, portrait | 25.4 mm |
| US Letter | 215.9 x 279.4 mm, portrait | 25.4 mm |
| A4 landscape | 297.0 x 210.0 mm, landscape | 25.4 mm |
| A4 page with a 90-degree rotation | 297.0 x 210.0 mm, landscape | 25.4 mm |
| A4 page with a 100 x 141.1 mm crop box | 100.0 x 141.1 mm, portrait | 12.5 mm |
| Letter page, then an A4 page | 215.9 x 279.4 mm for the whole file | 25.4 mm |
| A4 page, then a landscape A4 page | 210.0 x 297.0 mm for the whole file | 25.4 mm |
| 2 x 2 inch page | 50.8 x 50.8 mm | 6.3 mm |
| 30 x 40 inch poster page | 419.1 x 558.8 mm (16.5 x 22 inches), scaled down | 25.4 mm |
Two limits show in the table. A PDF with pages of different sizes gets one size, that of its first page, because the file has a single section. And Microsoft's archived list of Word limits (opened 2026-11-16) gives 22 x 22 inches as the largest paper size, so a larger PDF page is scaled down with its proportions kept. On pages under 8 inches on their short side the margins shrink to an eighth of that side.
Converting a PDF to Word
Step 1
Add a PDF with real text
The page counts the pages first. A password-protected file stops here with a message, so open it with Unlock PDF before you start.
Step 2
Convert
pdf.js reads the text of every page in order, and the words are written into a new .docx file as plain paragraphs.
Step 3
Check, then edit
Open the file in Word, Google Docs or LibreOffice and compare it with the PDF, because layout and pictures are not carried over.
Before you send the edited file
Read the Word version against the PDF once. A word split with a hyphen at a line end comes out as two pieces such as exam- ple, numbers in tables lose their columns, and a line that touched the page edge may be short a few characters. The tool flags that last case for you, but it cannot see the others.
PDF to Word: what people ask
Will my PDF look the same in Word?
No. Only the words and the paper size are copied. Fonts, bold, columns, tables, images and headers are left behind, and each PDF page becomes plain text followed by a page break. Use it to get editable words, not a copy of the design.
How does it decide where a paragraph starts?
From the layout of each page: a line gap clearly wider than the page's normal line spacing, a change of font size, a jump to the top of the next column, or a line that starts with a bullet. Each of these starts a new paragraph. The Word file holds plain paragraphs only, so a heading or a bullet item becomes an ordinary paragraph rather than a Word heading or list. Paragraphs marked only by a first-line indent, with no extra space, run together.
Can it convert a scanned PDF?
Not usefully. A scan is a picture of a page with no text layer, and this tool has no OCR, so each scanned page turns into an empty paragraph. You need an OCR program first.
What does the warning about text near the page edge mean?
pdf.js skips characters that sit past the edge of the page area. When a line of text reaches the edge, the tool shows a warning that a few characters may be missing, so compare that line with the PDF.
Is there a page or size limit?
No fixed limit is set. The whole file is read into memory, and the PDF engine gets 30 seconds to open it, so a very large or damaged file can fail on memory or on time.
Which apps can open the .docx?
It is a minimal Office Open XML package with one document part and no styles part, so whichever word processor opens it applies its own default font. The paper size and 1-inch margins are written into the file. The format is the one defined in ECMA-376.
Does the Word file keep my PDF's page size?
It takes the size of the first page, as a viewer shows it, for the whole document. In our test an A4 PDF gave a 210 x 297 mm Word page, a US Letter PDF 215.9 x 279.4 mm, and a landscape A4 PDF 297 x 210 mm set to landscape. A PDF that starts with a Letter page and continues in A4 was Letter throughout.
What happens to a rotated or cropped PDF page?
The size follows what a viewer shows. An A4 page stored upright with a 90-degree rotation gave a landscape 297 x 210 mm Word page, and an A4 page with a 100 x 141.1 mm crop box gave a 100 x 141.1 mm page. Text outside the crop box was not copied, because pdf.js does not return it.
Related guide
How to compress, merge and convert PDFs without uploading them. The guide explains why a text-layer conversion returns words but not layout, and why scanned pages come back empty without OCR.