Code Cleaner
Prettify or minify your code.
Format messy code for readability, or strip it down for production. Supports JavaScript, CSS, and HTML. Everything runs in your browser β your code never leaves your machine.
Your code stays local. No upload, no server, no logging. All processing happens in your browser using self-hosted libraries.
Libraries used (all self-hosted, no CDN): Prettier for prettifying HTML, CSS, and JS — Terser for JS minification — CSSO for CSS minification — vanilla JS for HTML minification (comments removed, whitespace collapsed). Plugins load on first use to keep the initial page light (~93 KB until you click Prettify or Minify).
Input
0 chars
Output
0 chars
Ready.
Loading librariesβ¦
Looking for something else?
Check out our other privacy, everyday, and developer tools.
Browse all tools →