Private AI Tools

Free Image to HTML Converter

Image to HTML Converter turns photos, scans and screenshots of document pages into clean, semantic HTML. It reads the text with the Tesseract OCR engine in 19 languages and rebuilds headings, paragraphs, bulleted and numbered lists, tables and columns in reading order. Check the live preview, then copy or download the HTML or Markdown. Your pictures never leave your device.

Output:
Full HTML page, body only, Markdown
Finds:
Headings, lists, tables, columns, bold
OCR:
Tesseract.js, 19 languages
Price:
Free
Runs:
Locally, in your browser
Uploads:
None: files never leave your device
Account:
Not needed

Quick answers

Are my pictures uploaded?

No. The text is read in your browser by Tesseract, an open-source OCR engine running as WebAssembly, and the structure is rebuilt in a background worker. Only the engine and the language data are downloaded from this site; your pictures never leave your device.

What does it recognize besides the text?

Headings (from larger or bold text), paragraphs with their lines joined and end-of-line hyphens removed, bulleted, numbered and lettered lists including nested ones, tables with or without borders, text in columns in reading order, and bold words.

Loading tool…

Processed on your device: your files are never uploaded. How it works

How to use the Image to HTML Converter

  1. Drop one or more photos, scans or screenshots of document pages (JPG, PNG, WebP, TIFF…), or paste a screenshot with Ctrl+V. Several pictures become one HTML file, in the order of the list.
  2. If needed, turn a picture with Left or Right, adjust Straighten (it is set automatically) or use Crop to keep only the text, and choose the languages of the text.
  3. Click Convert to HTML and check the Preview: words the OCR was unsure about are highlighted.
  4. Click Download .html or Copy HTML, or take the Markdown. Choose Full page or Body only, and whether to keep line breaks, columns side by side, the pictures and page headers.

Credits & open source

Our own code plus open-source libraries. Thank you to the people who make these projects.

  • Tesseract.jsTesseract OCR engine compiled to WebAssembly. © Project Naptha (Jerome Wu, Kevin Kwok, Guillermo Webster); Tesseract OCR by Google and contributors · Apache-2.0
  • CodeMirror 6Code editor with syntax highlighting. © Marijn Haverbeke and others · MIT
  • @uiw/react-codemirrorReact wrapper for CodeMirror 6. © Kenny Wong (uiwjs) · MIT

Web platform APIs used: File API, Canvas 2D, createImageBitmap, Web Workers, WebAssembly, Clipboard API.

Full license texts: third-party notices · all credits

Frequently asked questions

Does the HTML look like the original page?

It keeps the structure, not the look: fonts, colours, exact positions and pictures inside the document are not reproduced. The file has a small built-in stylesheet, or you can take only the body and style it yourself. You can also embed the original picture in the file.

Is the HTML safe to paste into my site?

Yes. All recognized text is escaped, so text such as <script> in a picture stays plain text. The file has no scripts and loads nothing from the web, and the preview runs in a sandboxed frame without scripts.

How do I get the best result?

Use a sharp, evenly lit picture taken straight above the page, select the languages of the text (and only those), turn sideways pictures with Left or Right, and crop away anything that is not part of the document. Check the highlighted words before you publish.

Can it read handwriting or formulas?

No. Tesseract is trained on printed text: handwriting is read poorly and mathematical formulas are not rebuilt.

More pdf tools