HTML to PDF
Paste HTML code or open a saved .html page, check the cleaned-up live preview and download a tidy PDF. The text stays selectable and searchable, and headings become bookmarks.
Working…
Your HTML stays on your device. The draft is saved only in this browser.
How to HTML to PDF
- Paste your HTML code, or open a saved .html / .htm file.
- Check the preview and choose paper size, margins, font and text size.
- Click "Download PDF".
Frequently asked questions
Can I convert a web page by entering its address?
No. Browsers do not let one site read pages from another site (this rule is called CORS), and this tool never connects to other websites. Instead, open the page, press Ctrl+S (Cmd+S on a Mac) or choose "Save page as", save it as "Web page, HTML only" and open the .html file here.
Which HTML elements are kept?
Headings, paragraphs, bold, italic, strikethrough, links, bullet and numbered lists, tables, code blocks, quotes, horizontal rules and images embedded as data URLs. CSS styles, colours, page layouts, scripts and forms are not used: the content is laid out again as a clean document.
Is it safe to paste HTML from an unknown source?
Yes. Before anything is shown, the code is cleaned with DOMPurify: scripts, event handlers such as onerror and javascript: links are removed. Nothing in the HTML is run and nothing is loaded from the internet.
Why are my images missing?
Only images embedded in the code as data URLs (data:image/png;base64,…) can be included. Images with a relative path or a web address cannot be loaded, because the tool never fetches files from the internet. Their alt text is written instead.
Can I select the text in the PDF? Which languages work?
Yes, the text is real text with embedded fonts and headings appear as bookmarks. The fonts cover Latin-script languages, including Turkish, German, French and Spanish. Letters from other scripts (Cyrillic, Greek, Arabic, Chinese and so on) and emoji appear as "?".
Do you have tools for other formats?
Yes. For Markdown use Markdown to PDF, for e-books use EPUB to PDF. To combine the result with other PDFs, use Merge PDF.
Is my HTML uploaded?
No. Cleaning, preview and the PDF are all done in your browser. Your draft is only stored on this device.
Other tools
- Merge PDFCombine several PDFs into one file in the order you want.
- Split PDFExtract pages or split a PDF into several files.
- Compress PDFMake PDF files smaller so they are easier to email and upload.
- Organize PDFReorder, rotate and delete pages visually.
- Crop PDFTrim margins or cut out a part of the page.
- PDF to Word (Beta)Turn PDF text into an editable Word document.
- PDF to Excel (Beta)Extract tables from PDFs into an Excel spreadsheet.
- Excel to PDFTurn spreadsheets into clean, printable PDF tables.
- Protect PDFAdd a password to a PDF with strong encryption.
- Unlock PDFRemove the password and restrictions from your PDF.
- Redact PDFPermanently black out confidential information.
- Compare PDFFind the text differences between two PDF versions.
- Scan to PDFTurn phone photos of documents into a clean PDF.
- Repair PDFFix damaged PDFs that won't open.
- Image to Text (OCR)Extract editable text from photos, screenshots and scanned PDFs.
- Edit PDFAdd text, drawings, shapes and highlights to any PDF.
- Sign PDFDraw, type or upload your signature and place it on any page.
- Invoice GeneratorCreate a clean, professional PDF invoice in a minute.
- CV MakerBuild a clean, ATS-friendly CV and download it as a PDF.
- JPG to PDFTurn photos and images into a single PDF document.
- PNG to PDFTurn PNG screenshots and graphics into a PDF, transparency included.
- PDF to JPGSave PDF pages as high-quality JPG or PNG images.
- PDF to PNGSave PDF pages as sharp, lossless PNG images.
- Rotate PDFTurn PDF pages the right way up and save the result.
- Extract PDF PagesPick the pages you need and save them as a new PDF.
- PDF to TextTurn the text in a PDF into plain, copyable text (.txt).
- Grayscale PDFConvert a colour PDF to grayscale or black and white and save colour ink.
- Multiple Pages per SheetFit 2, 4, 6, 9 or 16 PDF pages on one sheet to save paper when printing notes and slides.
- Change PDF Page SizeConvert PDF pages to A4, A5, A3, Letter or Legal and make mixed sizes uniform.
- Extract Images from PDFSave the photos and pictures inside a PDF as separate JPG or PNG files.
- Remove or Edit PDF MetadataRemove or change the author, title, creator software and dates stored in a PDF.
- Flatten PDFLock filled-in PDF forms, or make a PDF completely uneditable.
- Create Job Application PDFCombine your CV, cover letter, diplomas and certificates (PDFs and photos) into one application PDF.
- Fill PDF FormFill in PDF forms on your computer or phone, no printer needed.
- Mirror PDFFlip PDF pages horizontally or vertically, for iron-on transfers and T-shirt printing.
- Alternate & Mix PDFInterleave the pages of two PDFs, for fronts and backs scanned separately.
- PDF SnapshotSelect an area of a PDF page and save it as a high-resolution PNG or JPG.
- PDF Booklet MakerArrange a PDF for printing as a folded, stapled booklet: two pages per sheet in the right order.
- Make PDF SearchableAdd an invisible text layer to a scanned PDF so you can search with Ctrl+F and copy text.
- Deskew PDFAutomatically straighten crooked scanned PDF pages.
- PDF to PowerPointTurn PDF pages into PowerPoint (PPTX) slides, ready to present.
- UDF to PDFConvert UYAP .udf documents (Turkish court system) to PDF without installing anything.
- Delete PDF pagesRemove unwanted pages from a PDF in a few clicks.
- Add page numbersNumber the pages of a PDF automatically.
- Create PDF FormAdd fillable text boxes, checkboxes and drop-down lists to any PDF.
- Markdown to PDFConvert Markdown text or .md files into a clean PDF with selectable text.
- EPUB to PDFConvert DRM-free EPUB e-books into PDF with selectable text and a bookmarked table of contents.
- PDF to EPUBTurn a PDF into an EPUB e-book with reflowing text, chapters and a table of contents.
- Edit PDF BookmarksAdd, rename, reorder and nest PDF bookmarks (the clickable table of contents).
- PDF Dark ModeMake a PDF dark for night reading, invert its colours or give it a sepia tone.
- Add watermarkStamp text such as "Confidential" on every page.