PDF to HTML: Text You Can Publish
Turn a PDF's text into clean HTML with headings and paragraphs. Preview it, then copy or download a full page or just the body. Your PDF stays in your browser.
Rate this toolPDF to HTML Studio
Headings by font size · page breaks · full page or snippet · live preview
Your PDF
Drop your PDF here
or click to browse (one file, up to 100 MB)
HTML options
Your HTML
Add a PDF on the left. Its text appears here as HTML, with a preview.
- Heading levels
- 6Heading levels
- Output options
- 3Output options
- Max PDF size
- 100 MBMax PDF size
- Files uploaded
- 0Files uploaded
Use your HTML
Tools that pick up where this one leaves off.
Turn a PDF into HTML in three steps
From a PDF to markup you can paste into a page or a CMS: no sign-up, no upload.
- STEP 01
Add your PDF
Drop one PDF up to 100 MB. Its text is read page by page.
Read on this page only - STEP 02
Check the preview
See the page and its source code side by side, and pick your options.
Sandboxed preview - STEP 03
Copy or download
Copy the HTML, or save it as an .html file named after your PDF.
Page or snippet
How to use this PDF to HTML converter
pdf.js reads each line of text with its size and position. The studio turns big lines into headings and the rest into paragraphs.
- 1
Drop the PDF
Reading starts at once. A progress bar shows the page it is on, with Cancel.
- 2
HTML builds itself
When reading finishes, the HTML is generated with the default options.
- 3
Change options
Turn page breaks, styling or the full document on or off, then press Regenerate HTML.
- 4
Take it with you
Copy the code for a CMS, or download the .html file to open in any browser.
Getting tidy HTML from a PDF
Four habits that save clean-up time afterwards.
Start with a text PDF
PDFs exported from Word or a browser have real text. Scans are only pictures of text.
- Export, don't print to scan
- Try selecting text first
- Scans give empty pages
Check the heading levels
Headings come from font size, so a big quote can turn into an h2. Read the outline.
- One h1 per page is usual
- Fix odd jumps by hand
- Bold small lines become h5 or h6
Snippet for a CMS
Most editors want only the body. Turn Full document off and paste the tags.
- Full document off
- Paste in code view
- Let the CMS style it
Read the preview
Lines are joined by position. Skim the preview for words in the wrong order.
- Two columns can mix
- Headers repeat per page
- Footers become paragraphs
How each line becomes a tag
Font size, measured in points, decides the tag. Bold matters for the smallest headings.
28 pt and up: h1
The biggest text on a page, usually the document title.
22 to 27 pt: h2
Large section titles.
18 to 21 pt: h3, 16 to 17: h4
Sub-headings and smaller titles.
Bold 14 to 15 pt: h5, bold 13: h6
Small bold lines that act as labels or minor headings.
Everything else: p
Body text becomes paragraphs. Bold body lines are wrapped in strong.
Safe characters
Signs like < > & and quotes are escaped, so text never turns into code.
How different people use it
One studio, very different places the HTML ends up.
Website editors
Publish a PDF report as a normal web page people can read on a phone.
Developers
Get the text and heading outline of a document instead of retyping it.
Newsletter writers
Pull the words of a PDF into an email or newsletter editor.
Teachers and students
Put handouts on a class site or learning platform as plain pages.
What the studio can and can't do
Straight from the tool, so you know before you start.
Input
What you can put in.
- One PDF at a time
- Up to 100 MB
- A warning above 200 pages
- Cancel at any time
Output
What you get back.
- Headings h1 to h6 and paragraphs
- One section per PDF page
- Optional page break lines
- Full page or body snippet
Not carried over
Things to know first.
- Images and drawings
- Tables and columns
- Links, colours and fonts
- Text in scanned pages
Need an editable document instead of a web page? Try PDF to Word.
Keeping converted pages tidy
Habits for when you turn PDFs into web pages often.
- 1
Fix the outline once
Correct any heading levels in the HTML, then keep that version as your master.
- 2
Remove repeats
Running headers and page numbers come through on every page. Delete them in one pass.
- 3
Keep the PDF
The PDF holds the layout and images. Keep it for anyone who wants the original.
- 4
Name the file
The download takes the PDF's name with .html, and that name is also the page title.
What makes it from the PDF into the HTML
Text structure comes across. Visual layout stays in the PDF.
| Part of the PDF | In the HTML | How |
|---|---|---|
| Body text | ✓ Yes | ✓ p tags |
| Large titles | ✓ Yes | ✓ h1 to h4 by size |
| Bold lines | ✓ Yes | ✓ strong, or h5 / h6 |
| Page boundaries | ✓ Yes | A section per page, hr if on |
| Images and charts | ✗ No | ✗ Not text |
| Tables and columns | Text only | Lines joined by position |
| Links, colours, fonts | ✗ No | ✗ Dropped |
Pro tips for PDF to HTML
Small checks that save editing time later.
Blank result?
The PDF is probably a scan. Pages show (No text on this page).
Pasting into a CMS
Turn Full document off so you paste only the body tags.
No styling
Turn Basic styling off to get bare tags your site's CSS will style.
Copy failed?
Some browsers block the clipboard. Download the .html file instead.
Too many headings?
Large pull quotes become headings. Change them to p by hand.
Changed an option?
Press Regenerate HTML. The studio flags when the code is out of date.
Private PDFs
Contracts and reports are read here, on your device, and never uploaded.
Back to PDF?
Turn HTML into a PDF with HTML to PDF.
The heading levels are what screen readers and search engines use to understand a page. Get h1, h2 and h3 right first; colours and spacing are easy to add later.
Full document, or just a snippet?
One opens on its own in a browser. The other drops into a page you already have.
Full document
A complete page with doctype, head, title and, if you like, a small style block. Opens straight in a browser.
When it stands alone
Snippet
Just the content tags, with no head or styles, ready to paste into an editor that adds its own.
When a site wraps it
Who uses this PDF to HTML converter
The same studio, six everyday jobs.
Reports on the web
An annual report as a readable page.
Press releases
A PDF release turned into a news post.
Course notes
Handouts on a class website.
Newsletters
PDF text pasted into an email builder.
Developers
A document's outline as starter markup.
Policies and manuals
Long documents split into web pages.
Want pictures of the pages instead? Try PDF to JPG.
Frequently asked questions
Quick answers about tags, layout, options and privacy.
Does it preserve formatting?
Can I get just a code fragment?
Does it convert images, tables and scanned pages?
Is my PDF uploaded?
What people say
Reviews from people who used this tool.
Loading reviews…
Popular presets
Jump to a version of this tool already set up for a specific need.
More free PDF tools
Free, with no sign-up, just like this one.
- Free toolHTML to PDFConvert HTML code or rich text into professional PDF documents - instantly in your browserTry it now
- Free toolJPG to PDFCombine JPG, PNG, WebP, and other images into a single, clean PDF - page size, orientation, and margins of your choice.Try it now
- Free toolPDF to WordConvert PDF to editable Word with OCR, font detection, and page preview - 100% free, no signupTry it now
- Free toolPDF to PowerPointConvert PDF files to real .pptx slides: each page is rendered as a high-fidelity image so layout is preserved exactly (text isn't separately editable; use PDF to Word for that).Try it now
- Free toolPowerPoint to PDFConvert .pptx (PowerPoint 2007+) presentations to PDF: text + embedded images extracted per slide; layout, fonts, and animations are not preserved.Try it now
- Free toolPDF to ExcelExtract tables, financial data, and structured content from PDF documents into editable Excel spreadsheets (XLSX).Try it now