HTML Formatter
Beautify messy HTML in your browser with rehype-parse and rehype-format. Choose indentation, copy or download the result. Nothing is uploaded.
These tools run real rehype and unified pipelines, bundled with this site and executed in a background worker in your browser. Nothing you paste is sent to a server.
Beautify messy HTML in your browser with rehype-parse and rehype-format. Choose indentation, copy or download the result. Nothing is uploaded.
Minify HTML in your browser with the rehype-preset-minify plugins and see exact byte savings. Free, private and nothing is uploaded.
Sanitize untrusted HTML with rehype-sanitize and an allowlist schema. See which tags and attributes were removed. Results are shown as code, never rendered.
Convert HTML to clean Markdown with rehype-remark, remark-gfm and remark-stringify, including tables and code blocks. Runs privately in your browser.
Run rehype plugins such as rehype-slug, rehype-highlight and rehype-external-links on your HTML and preview the output in a sandboxed frame.
Search and filter a curated list of real rehype plugins by category and maintainer, then generate the npm install command and pipeline code.
Each tool page loads a JavaScript bundle that was compiled from the official npm packages (rehype-parse, rehype-format, rehype-sanitize, rehype-remark and others) and is served from this site, not from a CDN. Processing happens in a Web Worker with a time limit, so a very large input cannot freeze the page. Inputs are limited to 200,000 characters.
The results match what the same packages produce in Node.js, with one documented exception: the minifier cannot run the three rehype-preset-minify plugins that depend on uglify-js. The minifier page explains the details.
Want to run these transformations in your own project? Each tool page links to the tutorial that builds the same pipeline in Node.js.