Code formatting

Format, validate, minify and obfuscate code in multiple languages

About this category

Formatting code makes it readable when it arrives minified, pasted from a log or written without a clear convention. These tools reindent JavaScript, HTML, CSS, JSON, XML and SQL with indentation and style options, and warn you when the content has errors that prevent it from being processed.

In the opposite direction, the minifier removes whitespace and comments to reduce the size of published files, and the obfuscator transforms JavaScript to make it harder to read. Obfuscation does not protect secrets: a key inside code that runs on the client is still accessible. All formatting is done in your browser, so you can use it with private code.