Code Minifier & Beautifier
Minify or beautify JavaScript, CSS, HTML, JSON, XML, SQL, Java, Kotlin, C#, C/C++, Go, Swift, PHP, Python and YAML.
About the Code Minifier & Beautifier
One tool for compacting or formatting code in JavaScript/TypeScript, CSS, HTML, JSON, XML/SVG, SQL, Java, Kotlin, C#, C/C++, Go, Swift, PHP, Python and YAML. Comments and whitespace are stripped safely around strings and regular expressions, or the code is re-indented with your chosen indent size. Brace languages keep their line breaks so statements stay valid, and indentation-sensitive languages like Python and YAML never have their indentation changed. Language is auto-detected from what you paste or drop, and byte-size savings are shown for every run.
Popular uses
- minify
- minifier
- beautifier
- code formatter
- javascript minifier
- css minifier
- html minifier
- json minifier
Examples
Minify CSS
CSSbody {
color: red;
}Output
CSSbody{color:red}Beautify JSON
JSON{"a":1,"b":[2,3]}Output
JSON{
"a": 1,
"b": [2, 3]
}Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
AAB (Android App Bundle) Analyzer
Dev Utilities
Open an .aab file and inspect its manifest, modules, ABIs, densities and size breakdown.
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
APK Certificate Inspector (SHA-1 / SHA-256)
Dev Utilities
Read an APK's signing certificate and get its SHA-1, SHA-256 and MD5 fingerprints.
Archive Extractor & File Explorer
Dev Utilities
Unzip ZIP, TAR, GZ, 7Z, RAR and more in your browser — browse folders, preview and download files.
HTML to JSX Converter
Dev Utilities
Convert HTML markup into clean React/JSX component code.
iOS IPA Analyzer & Explorer
Dev Utilities
Open an iOS .ipa, decode Info.plist and browse or download every file inside.
Works well with
Next steps from other categories.
JSON Minifier
JSON
Compress JSON by removing whitespace and show bytes saved.
YAML Formatter
Converters
Beautify and normalize YAML with a hand-written parser.
Frequently asked questions
Read more
- How to explore, edit and map a source project in your browser
A practical guide to opening a source archive, tracing dependencies, inspecting syntax trees and exporting edited files without uploading a repository.
- Line diff is not enough: word and character diffs for prose, config and JSON
Line-based diffs mark a whole paragraph as changed when one word moved. Word and character granularity, unified patches and side-by-side views each solve a different problem.
Version 2.0.0 · Updated 2026-08-21 · Runs entirely in your browser