HTML to PDF
Convert HTML files or whole web pages into clean PDFs — in batches, at any screen width, as one long page, with ads and popups stripped out. Free, fast and secure.
Related tools
Turn HTML files and live web pages into clean, print-ready PDFs with full CSS support. oMyPDF renders your markup with fonts, colours, layouts and images preserved — powered by headless Chrome on our servers, which scrolls the whole page, waits for lazy-loaded images, and strips cookie banners and ad slots before capturing. Convert up to 20 pages at once, choose the screen width to render at, and capture a whole page as one continuous sheet instead of chopping it into A4. Ideal for reports, email templates, documentation and web page archives.
How to convert HTML to PDF
- 1
Add your pages
Paste HTML, upload one or more .html files (with their CSS and images), or list the web addresses you want captured.
- 2
Choose how it renders
Pick a paper size or one long full page, set the screen width to render at, and switch on ad blocking and popup removal.
- 3
Convert & download
Convert to PDF and download — a batch arrives as separate PDFs or one merged file, with a shareable link for single conversions.
HTML to PDF features
Batch conversion
Convert up to 20 HTML files or web addresses in one run, as separate PDFs or a single merged document.
Full-length pages
Capture a whole web page as one continuous PDF page with no page breaks cutting through your content.
Choose the screen width
Render at desktop, tablet or mobile width so the PDF matches the layout your readers actually see.
Ads and popups removed
Cookie banners, newsletter modals and ad slots are stripped before capture, so the PDF holds the content, not the clutter.
Live preview
See pasted HTML rendered as you type, then choose the exact page size, orientation and margin.
Private or high-fidelity
Pasted HTML can convert privately in your browser; pages render on our server with headless Chrome.
Security & privacy
Your files are processed securely on our servers over an encrypted (HTTPS) connection and deleted immediately after conversion. We never store, read, or share your documents.
Frequently asked questions
Is the oMyPDF HTML to PDF tool free?
Yes. Converting HTML or a web page to PDF is free, with no watermark and no sign-up required — on files up to 100 MB.
Can I convert several HTML files or URLs at once?
Yes. Upload up to 20 .html files, or list up to 20 web addresses, and convert them in a single run. Choose whether you get one PDF per page (downloadable individually or as a .zip) or a single merged PDF.
What does the 'Full page' size do?
It captures the entire page as one continuous PDF page instead of slicing it into A4 sheets, so nothing is cut in half by a page break. Very long pages are split into the fewest possible tall pages, because a PDF page cannot exceed 200 inches.
Why does my PDF look narrower than the real website?
Because a printed page is much narrower than a monitor, browsers reflow to the paper width. The screen size setting fixes this: pick Desktop HD, Desktop, Tablet or Mobile and the page is laid out at that width, then scaled to fit your paper.
Can it remove cookie banners and ads?
Yes — both are on by default. 'Try to block ads' blocks known ad and tracker networks and hides leftover ad slots; 'Remove overlay popups' dismisses cookie banners, newsletter modals and full-screen overlays before capturing. Ad blocking is best effort, and you can switch either off if something you wanted is missing.
Why was part of a long web page missing before?
Many sites load content only as you scroll, and cookie banners lock the page so it can't be measured. The converter now scrolls the whole page, forces lazy images to load, waits for its height to settle, and unlocks scrolling first — so what you get is the finished page, not a half-loaded one.
Do uploaded HTML files keep their CSS and images?
Yes, if you upload them together. Drop your .html file along with its stylesheets, images and fonts and they're placed side by side on our server, so relative links like css/style.css resolve normally.
Does it keep CSS styling?
Yes. Inline, embedded and linked CSS is applied, and pages are rendered with the on-screen stylesheet rather than the print one — so the PDF matches what you actually see.
Are my files safe?
Pasted HTML can be converted entirely in your browser. Server conversions run over an encrypted connection, uploaded files are deleted as soon as the PDF is built, and the result is auto-deleted after about an hour.