Code Formatter
Beautify JavaScript, CSS and HTML with 2-space indentation.
About Code Formatter
Paste any JavaScript, CSS or HTML and click Format to auto-indent and normalise whitespace using js-beautify, loaded on demand from cdnjs. No code is sent to a server. Use the related minifier to do the opposite β strip whitespace for production.
Is my code uploaded?
No. Formatting runs entirely in your browser using js-beautify loaded from cdnjs. Your code never leaves your device.
What indent size is used?
Two spaces. The formatter normalises existing indentation to match.
Related: Code Minifier Β· SCSS Compiler
Keywords: code formatter, beautify JS CSS HTML, js-beautify browser, online code formatter