HTML to PDF
HTML to PDF turns pasted code or an HTML file into a searchable PDF, free, on your device. Use it for reports, invoices or notes, then finish saving in your browser’s print window.
Paste HTML or choose a file, then press Show preview.
Save as PDF opens your browser's print window. Choose "Save as PDF" (or "Microsoft Print to PDF") as the printer there. Your HTML stays on this device. Scripts in it do not run.
What is the HTML to PDF?
HTML to PDF is a free tool that turns HTML code or a saved HTML file into a PDF using your own browser. Paste your code or choose a file, set the paper size and margins, then preview the page before opening the print window. Your browser draws the document, keeping text selectable and searchable while respecting CSS print rules and page breaks. Students, teachers, office workers and developers can use it for notes, reports and invoices. Your HTML is not uploaded to OpenMultiURL, though linked online images, fonts and style sheets make requests to their host sites.
Who it is for: HTML to PDF is for students, teachers, office workers, small-business owners and developers who need a PDF from HTML code or a saved file.
How to use the HTML to PDF
- Paste code into Your HTML, choose Try with sample data, or tap Or choose an HTML file to open a file up to 5 MB.
- Set Paper size to A4, Letter (US), Legal (US), A3 or A5, then choose Portrait (tall) or Landscape (wide) under Direction.
- Choose Margins: Normal (15 mm), Narrow (8 mm), Wide (25 mm) or None.
- Tap Show preview and check the page layout, images and text.
- Tap Save as PDF to open the browser print window with your settings applied. Choose Save as PDF as the printer, or Microsoft Print to PDF on Windows, then save; turn off browser headers and footers under More settings if needed.
Why use it
- Keep text searchableYour browser prints real text rather than turning the whole page into an image.
- Set the page layoutChoose from five paper sizes, portrait or landscape, and four margin settings.
- Respect print stylingThe browser respects CSS print rules and page breaks, and keeps background colours.
- Keep HTML on your deviceConversion runs in your browser without uploading your HTML to OpenMultiURL.
At a glance
- What you put in
- Pasted HTML code or an HTML file up to 5 MB
- What you get
- PDF saved through the browser print window
- Limits
- Free; no subscriptions; HTML input only, not URLs; scripts do not run
- Privacy
- Runs in your browser. Nothing you enter is uploaded or stored.
- Price
- Free for everyone. No subscriptions, no payments, no watermark.
- Works offline
- Yes, once the page has loaded
- Last checked
- by AK Shine
Worked example
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Invoice 1042</title></head><body><h2>Invoice 1042</h2><p>3 notebooks at $4.00 each</p><p>Total: $12.00</p></body></html>
Invoice 1042 3 notebooks at $4.00 each Total: $12.00
This is the PDF’s visible document text with browser headers and footers off; 3 × $4.00 = $12.00.
When to use something else
- For a live webpage or a page that needs JavaScript, open it in your browser and print it there; this tool accepts HTML, not a web address, and does not run scripts.
- The print window makes the PDF, so there is no direct file download; some phones offer fewer print options.
- For a required PDF/A or accessible PDF standard, use a dedicated authoring and validation workflow; selectable text alone does not establish compliance.
Questions people ask
How do I convert an HTML file to PDF for free?
Use Or choose an HTML file to open a file up to 5 MB, or paste code into Your HTML. Tap Show preview, then Save as PDF and choose the PDF printer in your browser’s print window.
Can I convert a webpage URL or run JavaScript?
This tool converts pasted HTML or an HTML file, not a web address. Scripts do not run, so content built by JavaScript may be empty; print the live page from your browser instead.
Will the PDF keep CSS, background colours and selectable text?
Your browser respects CSS, including print rules and page breaks, and keeps background colours. Text stays selectable and searchable, but check Show preview and the print preview because print styling can differ from the screen layout.
Why are images, fonts or styles missing?
An HTML file may depend on separate local files that are not included when you choose it. Pictures, fonts and style sheets linked with HTTPS addresses can load, but unavailable resources or blocked requests may leave them missing.
Can I choose A4 or Letter and prevent wide tables being cut off?
Paper size offers A4, Letter (US), Legal (US), A3 and A5. Try Landscape (wide) under Direction and Narrow (8 mm) under Margins for a wide table; check Show preview and adjust the HTML’s print CSS if needed.
Is my HTML uploaded, and can I work offline?
Your HTML stays on this device and is not uploaded to OpenMultiURL; scripts do not run, forms cannot send and frames are blocked. Linked HTTPS resources make normal requests to their host sites. Once the tool has been opened, it works offline, but online resources need a connection.
Why does Save as PDF open a print window?
Save as PDF uses your browser’s print system rather than downloading a file directly. Choose Save as PDF as the printer, or Microsoft Print to PDF on Windows, then save; some phones show fewer options.
How do I remove the date, page title or other browser headers?
In the browser print window, open More settings and switch off Headers and footers. These are browser-added details, not part of your HTML; the setting’s location can vary by browser.