Skip to content
OddsockLocal
Local

No pages yet.

ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Choose a PDF that has real text, such as one of the three chapter files.
  2. Read the sections. One section is one page.
  3. Copy the HTML. A photo scan will not produce it.

What is PDF to HTML?

The HTML is one section per page, labeled Page 1, Page 2, and so on. Inside each section the text layer becomes a paragraph, and line breaks in that layer become br tags. Characters that would break markup are escaped. Three chapter files with real text become three HTML documents if you convert them one by one, or one long sequence of sections if you merge first. There is no CSS, no reproduced layout, and no images.

Read more

A 12-page scan of paper does not become twelve pictures in HTML. If the scan has no text layer, conversion stops and says so. OCR is not part of this page. Columns, sidebars and captions come out in content order, inside the section for that page. The section label is the page’s position. It does not invent new numbering, and it does not drop the number that was already stored as text.

Use cases

  • A developer turning chapter-2.pdf into semantic sections to drop into a page.
  • A student converting three chapter files, one at a time, to HTML notes.
  • An editor checking that a born-digital 12-page paper has a section per page.
  • A clerk learning that a scanned lease will not become HTML without a text layer.
  • A researcher grabbing escaped text from a paper without pulling the embedded figures.

Chapter 1 as a section per page

chapter-1.pdf with a normal text layer. Then a 12-page photo scan.

The chapter becomes sections, the first labeled Page 1, each holding a paragraph of that page’s text. The scan stops: no extractable text layer.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

It keeps the words and the page breaks. It does not keep columns, fonts or figures. Each page is a section with a paragraph.