OfflaneAI

PDF to Word —
editable .docx, built on your device

Drop a PDF and download a Word file you can edit in Microsoft Word, Google Docs or LibreOffice. Text, structure and formatting are reconstructed from the PDF's own layout.

  • 📝 Headings, bold, italic, alignment
  • 📄 Scans inserted as images
  • 📋 Plain-text export too
  • 🔒 Document never leaves your device

Loading the tool… (JavaScript required)

How accurate is the conversion?

Text-based PDFs (exported from Word, Google Docs, LaTeX, invoices, reports) convert with all text, paragraph breaks, headings by size, bold/italic and centred or right-aligned lines. Complex multi-column layouts and tables are flattened into reading order and may need tidying. The result opens in Word, Google Docs and Pages.

What about scanned PDFs?

Pages without a text layer are inserted as full-page images so nothing is lost. To get editable text from a scan, run the page through our Image to Text (OCR) tool — it reads 100+ languages on your device — and paste the result.

Is my file uploaded?

No. The PDF is parsed in your browser with PDF.js (the engine inside Firefox) and the .docx is assembled locally. No upload, no e-mail required, no copies kept.

How to convert a PDF to Word

  1. Add the PDF. Drop the file on the upload area or click it to choose one.
  2. Choose the output. Word (.docx) · editable is preselected. Plain text (.txt) gives the wording only.
  3. Decide what happens to scans. With Insert scanned pages as images ticked, a page that has no text is placed in the document as a picture, so nothing goes missing.
  4. Press “Convert”. The status changes from “Reading PDF…” to “Building document…”.
  5. Check the preview. The first 1,200 characters of the extracted text appear in a box. Read a few lines to see that the order is right.
  6. Download. The button shows the format and size. The file keeps the name of the PDF.

What the converter actually does

A PDF does not store paragraphs. It stores separate pieces of text, each with a position on the page, a font and a size. The converter reads those pieces, groups the ones on the same baseline into lines, sorts the lines from top to bottom and joins them into paragraphs. It then writes a new Word document with that text.

So the result is a rebuilt, flowing document and not a visual copy of the pages. Text, headings and emphasis come across. Layout that depends on exact positions, such as tables, columns and pictures, does not. The next table shows this element by element.

What survives and what does not

In the PDFIn the .docx
Body textKept and joined into paragraphs
HeadingsHeading 1, 2 or 3 style, detected by font size
Bold and italicKept
Font size of body textKept, between 8 and 72 pt
Centred and right-aligned linesKept
Justified textBecomes left-aligned
Font family, text colour, underline, highlightNot kept; the document’s default font is used
Bulleted and numbered listsPlain paragraphs; the bullet or number stays only if the PDF stores it as text
TablesCell text kept row by row, without the grid
Two or more columnsLines of neighbouring columns are mixed together
Pictures, charts and logos on pages with textNot exported
Rules, boxes, coloured backgroundsNot exported
HyperlinksThe visible text stays, the link target is lost
Headers, footers, page numbersOrdinary paragraphs at the top and bottom of every page
FootnotesOrdinary paragraphs at the bottom of the page
Superscripts, subscripts, formulasCharacters kept, position lost
Text typed into fillable form fieldsNot exported
Page size and marginsNot kept
Page breaksOne page break after every PDF page
Scanned pagesInserted as a picture of the whole page

How structure is detected

Headings

For each page the converter finds the typical size of the longer lines and treats it as body text. Larger lines become headings:

Line size compared with body textResultExample with 10 pt body text
1.7 times or moreHeading 117 pt and up
1.35 times or moreHeading 213.5 pt and up
1.15 times or more, and entirely boldHeading 311.5 pt bold and up

Real heading styles mean that Word’s navigation pane and automatic table of contents work straight away. Two cases need a manual fix: a heading that is only bold, at body size, stays a bold paragraph, and a heading that runs over two lines becomes two headings.

Bold and italic

Emphasis is read from the font of each piece of text, so a bold word inside a normal sentence stays bold.

Alignment

A short line whose middle sits on the centre of the page is centred. A short line that starts in the right half and ends near the right margin is right-aligned, which suits dates and addresses in letters. Everything else is aligned left.

Paragraphs and hyphenation

A new paragraph starts where the gap between lines is clearly larger than normal line spacing, where a line is indented, or where the style changes. Lines inside a paragraph are joined with a space. A word that was hyphenated at the end of a line is put back together. The side effect: a genuine compound that happened to break at its hyphen, such as “well-” and “known”, also loses the hyphen.

A paragraph that continues on the next PDF page is split in two, because each page is rebuilt separately.

Which PDFs convert well

Type of documentResult
Letter, contract, report, essay in one columnClose to the original; a few minutes of tidying
Book chapter or manual in one columnGood; page headers and page numbers repeat and need deleting
Invoice, statement, price listAll text and numbers present, table grid lost
Slide deckTitles and bullet text only, no pictures or layout
FormLabels kept; boxes, lines and filled-in values lost
CV with a sidebar, newsletter, two-column paperColumns mixed; use another converter
Brochure, magazine, posterNot suitable
Scan or photo of paperPage pictures only; see the next section

Scanned pages

How a scan is recognised

A page with fewer than 20 characters of real text is treated as a scan. It is rendered as a picture and inserted at the full text width. After conversion the result line tells you how many pages were handled this way. Untick Insert scanned pages as images to leave those pages empty instead; the .docx will be much smaller.

Getting editable text from a scan

This converter has no text recognition. Drop the same PDF into the image to text tool, which reads scanned pages on your device, and paste the recognised text into the document.

Scans that already contain a text layer

Many office scanners save a “searchable PDF”: a page picture with invisible recognised text behind it. Such a page counts as a text page here. You get the hidden text, with whatever mistakes the scanner’s recognition made, and the page picture is not inserted. The same applies to any page that mixes a picture with more than 20 characters of text.

Word or plain text output

Word (.docx)Plain text (.txt)
Headings, bold, italic, alignmentYesNo
Paragraphs rejoinedYesYes, with a blank line between them
Page boundariesPage breakA form-feed character on its own line
Scanned pagesPicture, if the option is tickedEmpty
Best forEditing and reformattingFeeding the text to other tools, search, notes

Plain text is the cleaner choice when you only need the content. It goes straight into the AI summarizer or the translator without any formatting in the way.

Working around the gaps

Tables

Each table row arrives as a line of text with the cells separated by single spaces, and neighbouring rows may be joined into one paragraph. For a small table, put each row on its own line and use Word’s Insert → Table → Convert Text to Table. For large or complex tables, use one of the converters named below.

Pictures and charts

Export the page as an image on the PDF → JPG / PNG tab of the PDF tools at 300 DPI, cut the picture out with the image cropper and insert it into the document.

Multi-column pages

No setting fixes mixed columns. Check the preview box: if sentences from two columns alternate, this converter is the wrong tool for that file.

Tidying up in Word

  • Font. Press Ctrl+A and choose a font. Sizes are set on the text itself, so they stay as they were in the PDF.
  • Page breaks. To let the text flow freely, open Replace, search for ^m and replace it with nothing.
  • Repeated headers and page numbers. Search for the header text and delete each occurrence, or remove them with Replace.
  • Spacing. Every paragraph has 6 pt of space after it. Change it for the whole document under paragraph settings.
  • Lists. Select the lines, delete the typed bullet characters and apply Word’s own list formatting.

The file opens in Microsoft Word, Google Docs, LibreOffice Writer and Apple Pages.

When another tool is the better choice

  • You only need to sign or date the PDF. Do not convert it. Place the signature directly with the PDF signing tool.
  • The layout must be preserved. Desktop Microsoft Word (2013 and later) opens a PDF through File → Open and rebuilds tables and columns. Adobe Acrobat’s export also keeps tables, columns and pictures; it is a paid product.
  • A scan must become editable in one step. Google Drive can open a PDF with Google Docs and recognise the text, at the cost of uploading the file to Google.
  • You want to change one word and keep the PDF. LibreOffice Draw opens PDFs for small edits in place.

How it runs and what happens to the file

The PDF is read by PDF.js (Apache 2.0), the engine behind the Firefox viewer, and the Word file is written by the open-source docx library (MIT). Both run inside the browser tab. There is no AI model, no queue and no e-mail step; a contract or payslip is converted without being uploaded.

There is no page limit. A text PDF converts in seconds. Scanned pages take longer and need more memory, because each one is rendered as a picture.

Troubleshooting

Sentences from two columns alternate

Text at the same height in both columns was joined into one line. Use desktop Word or Acrobat for this file.

The document contains only pictures, or the .txt is empty

The PDF is a scan without a text layer. Run it through the image to text tool.

The .docx is very large

Scanned pages were inserted as full-page pictures. Untick Insert scanned pages as images, or extract the text with OCR instead.

Every line is its own paragraph

The PDF uses wide line spacing, such as a double-spaced manuscript, so each line looks like a new paragraph. In Word, select the text and replace ^p with a space.

Letters are spaced out or words are glued together

Spaces are restored from the distances between pieces of text. Letter-spaced titles and tightly justified lines can mislead that step. Correct the affected lines by hand; spell check finds most of them.

The text is unreadable symbols

The PDF’s fonts carry no usable character table, so copying from any viewer gives the same result. Convert the pages to images at 300 DPI in PDF tools and run those images through the image to text tool.

“Something went wrong” right after pressing Convert

The file needs a password or is damaged. Open it in a PDF reader, print it to PDF and convert the printed copy.