Code Minifier & Beautifier
Minify or beautify JavaScript, CSS, HTML, JSON, XML, SQL, Java, Kotlin, C#, C/C++, Go, Swift, PHP, Python and YAML.
Drop a file here
or choose a code file — it is processed in your browser
Conservative transforms: comments and whitespace are removed or re-indented, but nothing is renamed, tree-shaken, or restructured. For Java, Kotlin, C#, C/C++, Go, Swift and PHP, line breaks are kept so statements stay valid; for Python and YAML, indentation is never changed. Always test output before shipping it.
Input
Minified output
function greet(name){console.log('Hello, '+name)}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.
Examples
Minify CSS
body {
color: red;
}Output
body{color:red}Beautify JSON
{"a":1,"b":[2,3]}Output
{
"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
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.
iOS IPA Certificate & Provisioning Inspector
Dev Utilities
Read the signing certificate and provisioning profile from an .ipa or .mobileprovision file.
Frequently asked questions
Read more
- 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.
Comments
No login needed. Comments appear after a quick review.
Loading comments…
Version 2.0.0 · Updated 2026-08-21 · Runs entirely in your browser