Convert HTML to PDF
Turn an HTML file, an email template or pasted code into a PDF with real, selectable text. Scripts never run and nothing is uploaded.
Or paste HTML code
- Processed on your device, never uploaded
- Free, no sign-up, no watermark
Done
This PDF is protected. Enter its password to open it.
About HTML to PDF
This tool lets you convert HTML to PDF online for free. Open an .html file or paste HTML code, and you get a PDF with real text you can select and search. It is not a screenshot. Page breaks fall between lines, not through them.
It suits developers, writers and anyone who keeps notes, receipts or reports as HTML. For safety, scripts, forms and frames are removed before display, and JavaScript does not run. Images built into the file are always included. Linked web images load only if you turn on Load web images.
Say a developer has an HTML invoice template filled in for a client. He pastes the code, checks the preview at A4 width, and clicks Convert to PDF to get a file he can email. Conversion happens in your browser, and nothing is uploaded.
How to use HTML to PDF
- Drop an .html file on the page, click Choose file, or paste code and click Use this HTML.
- Check the preview. It is laid out at your PDF page width.
- Choose a Page size (A4, Letter, Legal or A3), an Orientation (Portrait or Landscape) and Margins (None, Small, Normal or Wide).
- Turn on Load web images if your HTML links to pictures online.
- Click Convert to PDF and download the result. Click New file to start again.
Real text
Text stays selectable and searchable, not a screenshot.
Safe by design
Scripts, forms and frames are removed before the page is shown, and web images load only if you allow them.
Private by design
Converted in your browser; your HTML is never uploaded.
Clean page breaks
Pages break between lines, never through the middle of text.
Example
Input: pasted HTML for an invoice with a logo linked from the web.
You click Use this HTML, pick A4 and Normal margins, and turn on Load web images.
You click Convert to PDF.
Result: a PDF invoice with the logo and selectable text.
HTML to PDF: questions people ask
Is my file uploaded?
No. Conversion happens in your browser. Even with Load web images on, your HTML stays on your device.
Can I convert a website by its address?
Not directly, because browsers block one site from reading another. Save the page as HTML (Ctrl+S) and open that file.
Does JavaScript run?
No. Pages built mainly with JavaScript may appear empty.
Are images included?
Images built into the file are always included. Linked web images need the Load web images option.
Guides on this topic
All posts →
Edit PDF Online Free, in the Same Font: Meet Omebly's PDF Editor
Omebly's new PDF editor lets you click any word and change it in the same font, size and colour, free, with no sign-up, no watermark and no upload.
Full Stack Web Development Roadmap 2026: From HTML to Deployment
From your first HTML page to a deployed web app: the skills, tools, projects and month-by-month plan to become a full stack developer in 2026.
Introducing Omebly Explorer: A Free, Open-Source File Manager for Windows 11 and 10
Omebly Explorer is our free, open-source file manager for Windows. It does everything File Explorer does, then adds tabs, a viewer for every file, 51 PDF tools on the right-click menu, archives, a copy engine up to 18x faster, folder colours, tags and power tools, with nothing ever leaving your PC.