Convert HTML, MHTML files or any webpage URL to PDF, Markdown, or plain text. Also sanitize and minify HTML, CSS, and JS files - free, no account needed. For image-based PDFs see JPG to PDF, or explore all Other Converters.
HTML, HTM, MHTML, MHT - up to 25 MB each. Drop a whole folder too.
Choose FilesPaste any public URL - the page will be fetched and converted to the selected format. Login-protected or JavaScript-heavy pages may not render fully.
Removes tracking scripts, iframes, inline event handlers, and ad pixels.
Choose FilesOutput is clean HTML with scripts, trackers, and iframes removed. Great for archiving pages or re-using content.
Removes comments, collapses whitespace. No external services - runs on our server.
Choose FilesTypical savings: HTML 10-30%, CSS 20-50%, JS 15-40%. Output is a .min.ext file.
Converting...
Preparing your files...
For 3 or more files, all outputs are bundled into a single ZIP download. Need to convert images to PDF instead? Try JPG to PDF or PNG to ICO.
Standard web page source files. Supports inline and linked styles. External images are preserved where accessible.
Single-file web archives saved by Chrome, Edge, or IE. All CSS, fonts, and images are extracted and inlined for accurate PDF output.
Any public webpage URL. Fetched and rendered using Chromium headless for pixel-accurate PDF output.
Stylesheet and JavaScript files accepted in Minify mode. Output is a .min.css or .min.js file.
Convert multiple files at once. 3 or more outputs are zipped automatically.
MHTML CSS and images are fully inlined before conversion - output looks like the original page.
Paste any public URL and get a PDF. No browser extension needed.
Strips trackers, scripts, iframes, and ad pixels. Output is clean, privacy-safe HTML.
Reduce file size by 10-50% by removing comments and whitespace.
Add custom text to PDF headers and footers, or leave blank for auto page numbers.
Drop an entire folder and all supported files inside are queued for conversion automatically.
100% free, no account required. Files are deleted from our server after 4 hours.
MHTML files bundle all CSS and images inside the archive as MIME parts. Our converter extracts each CSS block and injects it inline into the HTML, and replaces all image references with embedded base64 data URIs. This produces a fully self-contained HTML document before it reaches the PDF engine - so the result looks identical to the original page.
In Google Chrome or Microsoft Edge, open the page and press Ctrl+S (Cmd+S on Mac). Change the "Save as type" dropdown to "Webpage, Single File" - this creates an .mhtml file with everything bundled in. Alternatively, use the "URL to PDF" tab and paste the page address directly.
The converter uses Chromium in headless mode, which does execute JavaScript. However, pages that require authentication, display captchas, or load content via delayed API calls may not render fully. For such pages, save the page as an MHTML first, then convert the MHTML file using the "Convert File" tab for best results.
The sanitizer removes: all <script> tags, iframes, <noscript> blocks, inline event handlers (onclick, onload, etc.), 1x1 tracking pixels, meta refresh redirects, preconnect/DNS-prefetch links to external trackers, and known analytics script domains (Google Analytics, Facebook, Amplitude, etc.). The page layout and content are preserved.
Yes - drag and drop multiple files, or drop a whole folder. Each file is converted individually. When you upload 3 or more files, all outputs are bundled into a single ZIP download that includes a README.txt. For working with individual PDFs afterwards, try our Merge PDF or Compress PDF tools.
Results vary by file content. Typical savings are 10-30% for HTML, 20-50% for CSS, and 15-40% for JS. The minifier uses conservative techniques - comments and whitespace are removed but code logic and string values are never altered. For further compression, combine minified files with gzip encoding on your web server.
Files are uploaded to our server only for the duration of conversion and deleted automatically after 4 hours. We do not read, index, or share your file content. For highly sensitive documents, prefer the Markdown or Text output formats which use the built-in PHP engine with no external tools involved.