PDF Converter

Published Updated

Turn a PDF into Word, EPUB or 300 DPI JPG pages, or turn a DOCX, EPUB, JPG, PNG or HEIC file into a PDF, one file per run.

Seven routes and how each one works

What you get depends on the pair:

FromToHow it is madeWhat to expect
PDFWord (.docx)Text read page by page with pdf.jsText only, with a new paragraph at wider line gaps, font size changes, bullets and new columns; no images, tables or layout
PDFEPUBThe same text, one chapter per pageEPUB 2 file titled with the file name, author set to GoConvertFiles
PDFJPGEach page rendered at 300 DPI, JPEG quality 95. A page that would be over 65,500 pixels long at 300 DPI is drawn at the highest DPI that keeps it within that size, and the result names that DPIOne page gives a .jpg; more pages give a ZIP with one JPG each
DOCXPDFParagraphs, headings and tables laid out as a web pageSaved from the print dialog; pictures left out
EPUBPDFChapters joined in reading order, images includedSaved from the print dialog
JPG or PNGPDFImage placed on a page of its own sizeJPEG data copied unchanged; phone photos turned upright from their EXIF tag
HEICPDFConverted to JPEG at 90% quality, then placed the same wayOne photo per PDF

When a dedicated tool does the job better

Several routes have a fuller version elsewhere on the site. PDF to Word uses the same paragraph rule as this route, so both give the same paragraphs. PDF to JPG lets you pick 300, 150 or 96 DPI and download pages one at a time; at 300 DPI an A4 page is 2,481 x 3,508 pixels.

For images, JPG to PDF puts many pictures into one file and HEIC to PDF takes several iPhone photos at once. For e-books, EPUB to PDF adds the cover image when the book names one and starts each chapter on a new page.

Converting a file

  1. Step 1

    Add one file

    PDF, DOCX, EPUB, JPG, PNG or HEIC. The type is recognised from the file name or its MIME type.

  2. Step 2

    Pick the target

    A PDF can become Word, EPUB or JPG. Every other type has a single target, PDF, so the choice is made for you.

  3. Step 3

    Convert and save

    Most routes give a download. Word and EPUB files open your print dialog instead, where Save as PDF finishes the job.

Why an image PDF has such large pages

PDF measures pages in units of 1/72 inch, as the PDF standard, ISO 32000-1, Table 30, sets for its default user space. The converter makes one unit per image pixel, so a 1,200 x 800 picture becomes a page of about 16.7 x 11.1 inches and a 12-megapixel photo a page of 56 x 42 inches. No pixels are lost, and readers scale the page to fit.

Word and EPUB conversions take a different path: the converter calls the browser's print function, which MDN describes as opening the print dialog for the current document. Paper size and margins come from that dialog.

Image to PDF: sizes we measured

We ran the image route of the converter (the EXIF reader, pdf-lib 1.17.1 embedJpg and embedPng, and the page code in lib/imagePdfPage.ts) in Node 22.23.1 on generated pictures. We did not open the PDFs in a viewer; the page sizes are what the file declares, and the pictures were not compared pixel by pixel.

Source pictureSource sizePDF sizePage (1 point per pixel)
JPEG 1,200 x 800147,194 bytes148,140 bytes16.7 x 11.1 in (423 x 282 mm)
JPEG 4,032 x 3,024, like a phone photo1,682,121 bytes1,683,074 bytes56.0 x 42.0 in (1,422 x 1,067 mm)
JPEG 1,600 x 1,200 stored with EXIF orientation 6283,681 bytes284,627 bytes1,200 x 1,600 points: 16.7 x 22.2 in, turned upright
PNG 1,200 x 800, photo-like1,584,792 bytes2,409,861 bytes (152 percent)16.7 x 11.1 in
PNG 800 x 600 with a transparent background426,963 bytes485,252 bytes (114 percent)11.1 x 8.3 in; the PDF carries a soft mask for the transparency

For the three JPEG files the picture data inside the PDF had the same SHA-256 hash as the source file, so the JPEG is copied without re-compression, and the PDF is about 1,000 bytes larger than the JPEG. A PNG is re-written as a Flate stream, and the photo-like PNG came out 52 percent larger than the file it came from. If file size matters, convert a photo to JPEG first, or use JPG to PDF for photos.

The page size is the picture's pixel count in points, so a 12-megapixel photo becomes a page 56 inches wide. Viewers scale the page to the window.

PDF to Word on a three-page report

We made a three-page A4 PDF with reportlab (a title, three paragraphs, a heading with three bullets, a page of two text columns of 14 lines each, and a small table), converted it with the converter's own steps (pdf.js text content, the layout paragraph rule, lib/docxBuilder.ts) and read the DOCX back with python-docx 1.2.0. We did not open it in Word or another word processor.

Part of the PDFWhat the DOCX held
Whole file313 words in the PDF's text and 313 in the DOCX; 13 paragraphs, 11 of them with text; 2 page breaks; no tables, no pictures; the file is 1,703 bytes against 3,605 for the PDF.
Title "Quarterly report" and heading "Highlights"Own paragraphs, but all 13 paragraphs use the Normal style, so neither is a Word heading.
Bullet listThree paragraphs that start with a bullet character and a space, typed text rather than a Word list.
Page of two columnsOne paragraph with the lines in the order LEFT1 RIGHT1 LEFT2 RIGHT2, so the columns are interleaved.
Table of three rowsOne paragraph: Item Count Price Rope 12 4.50 Lantern 3 19.00.
Page sizeTaken from the first PDF page: python-docx reads 210 x 297 mm (A4), portrait, with 25.4 mm margins.

This is a text conversion. It keeps the words and puts a paragraph break where the layout suggests one. For documents with columns or tables, check the result against the PDF.

PDF converter questions

Which conversions does it do?

PDF to Word (.docx), EPUB or JPG, and Word (.docx), EPUB, JPG, PNG or HEIC to PDF. The options you see depend on the file you add. Older .doc files, PowerPoint and Excel files are not accepted.

Why do Word and EPUB files open the print dialog?

Word and EPUB files become PDFs through your browser's print function. The document is laid out as a web page in a hidden frame and the print dialog opens; choose Save as PDF as the destination. The browser draws the PDF, so its text stays selectable.

Where does a new paragraph start in the Word or EPUB file?

At a line gap wider than the page's usual spacing, a change of font size, a bullet, or a jump back up the page into the next column (columns read line by line interleave; see below). A paragraph marked only by an indented first line still runs on into the next one, and the cells of a table row are joined. Scanned PDFs have no text layer and give empty pages either way.

Why is the PDF page so big when I convert a photo?

The page takes the photo's pixel size at one point per pixel, and a point is 1/72 of an inch. A 4032 x 3024 phone photo therefore ends up 56 inches wide and 42 inches tall. Screens and printers scale it, but for A4 or Letter pages from PNG files, PNG to PDF offers those sizes.

What happens to pictures and tables in a DOCX?

Tables keep their rows and cells with thin grey borders, and paragraphs styled Title or Heading 1 to 6 become headings. Pictures, headers, footers and footnotes are dropped, because only the main text is read.

Can I convert several files in one go?

No, one file per run. PDF Merge and JPG to PDF join several files into one document.

Is my JPEG changed when it goes into a PDF?

Not in our test. For three JPEG files the picture data inside the PDF had the same SHA-256 hash as the source file. A PNG is written again and came out larger: 2,409,861 bytes from a 1,584,792-byte photo-like PNG.

Why did my PNG become a bigger PDF?

A PNG is re-encoded into the PDF, and the result can be larger than the PNG. A photo-like PNG became 152 percent of its size and a transparent sticker 114 percent. A JPEG is copied as it is, so photos make smaller PDFs as JPEG.

Will the columns of my PDF stay in two columns in Word?

No. A two-column test page became one paragraph with the lines interleaved, and a table became one line of text. Check such pages after converting.

Are the headings real Word headings?

In our test no: every paragraph of the converted file used the Normal style, including a title and a heading in larger type. Apply heading styles in your word processor.

Related Tools