Kharabeesh
On-device ع

HTML to PDF

Paste HTML code or open an .html file and save it as PDF: we strip scripts and external loads, show it in an isolated frame, and you save it from the print dialog.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Paste HTML code or open an .html file.
  2. Choose the page’s own styling or clean styling, and set the paper and margins.
  3. Check the preview and the report of what was removed.
  4. Press “Print / Save as PDF” and choose “Save as PDF”.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: dompurify (open-source libraries bundled with the site).
  • Works offline after you open it once.
  • Saving happens in the print dialog: choose “Save as PDF”, and enable “Background graphics” to keep background colours.

Frequently asked questions

Can I paste a website link?

No. The tool never connects to the internet, so it cannot fetch a page from a link. Open the page in your browser and print it directly, or save it as an HTML file and open that here.

Why did images disappear?

Images loaded from external links or files next to the page are removed so no network request happens. Images embedded in the code (data:) stay.

What gets removed from the code?

Scripts, event handlers, forms, frames, media, and external fonts and stylesheets. CSS written inside the page stays (unless you choose “Clean styling”).

Colours and backgrounds are missing in the PDF?

Turn on “Background graphics” in the print dialog.

Is the code uploaded or saved?

No. Everything happens in your browser and nothing is stored.

Related tools