Code formatter and beautifier
Paste code in almost any language and get it clean and indented. The language is detected for you.
Free, no sign-up, no uploadHow it works
Paste your code, leave the language on auto-detect (or pick it) and press Format. Choose 2 spaces, 4 spaces or tabs.
Use Minify to shrink JSON, XML, HTML or CSS. Copy the result or download it. Everything runs in your browser.
Private by design
Everything happens on your device. Files are not uploaded to any server.
Frequently asked questions
Is my code uploaded anywhere?
No. It is formatted inside your browser and never leaves your device, so it is safe for private code.
Which indent can I choose?
2 spaces, 4 spaces or a tab.
Which languages are supported?
JSON, JavaScript, TypeScript, HTML, CSS, SCSS, Less, XML, PHP, SQL, YAML, Markdown and GraphQL.
What if the language is detected wrongly?
Pick it from the list instead of auto-detect.
Related tools
JSON formatter and validatorFormat, minify and validate JSONXML formatterFormat, minify and validate XMLPHP formatterFormat and beautify PHP code online in your browserSQL formatterFormat and beautify SQL queries online in your browserQR code generator that never expiresQR codes for links, text and Wi-Fi, no expiryUUID generatorGenerate random UUID v4 identifiers, one or hundreds at a time