JS Formatter
☆ favoriteFormat and minify JavaScript code.
How to Use
- Paste JavaScript into the box above.
- Click Format to add newlines after braces and semicolons, and indent blocks.
- Click Minify to collapse whitespace and strip comments.
- Select your preferred indent size from the dropdown.
Developer Tools (56)
Formatters & Minifiers (12)
Code to ImageJSON FormatterHTML FormatterCSS FormatterJS FormatterSQL FormatterXML FormatterHTML MinifierCSS MinifierJS MinifierJavaScript ObfuscatorSVG Optimizer
encode & decode (7)
Base64 Encode/DecodeURL Encode/DecodeHTML Entity EncoderJWT DecoderJWT BuilderHash GeneratorUUID Generator
JSON (4)
Converters (6)
Data Format ConverterPixels to REMTimestamp ConverterHTML to JSX ConverterSVG to JSX ConvertercURL to Code Converter
testing & inspection (13)
Regex TesterREST API TesterHTML Live PreviewCode Diff CheckerKeyboard Event ViewerCSV ViewerHTML Table ExtractorScreen RulerScreen Resolution CheckerUser Agent ParserColor Contrast CheckerCSS Specificity CalculatorCSS Cursors Reference
seo & web (8)
Open Graph PreviewSERP Preview ToolSchema Markup GeneratorTable Generator.htaccess GeneratorCron Expression GeneratorHTTP Status CodesChmod Calculator
network & validation (6)