Developer Tools
JavaScript Formatter
Pretty-print JavaScript snippets with readable spacing.
Input
JavaScript Formatter
javascriptformatterbeautifierpretty print
Output
Formatted JavaScript
Original chars
79
Indentation
2 spaces
function greet(name) {
return `Hello, $ {
name
}
`
}
console.log(greet('Tool Planet'))Related tools
JSON Formatter
Pretty-print raw JSON with configurable indentation.
JSON Validator
Validate JSON and get a clean parse result.
JSON Minifier
Compress JSON into a single-line payload.
JSON Diff
Compare two JSON documents and list what changed.
JWT Decoder
Decode JWT header and payload without verifying the signature.
Regex Tester
Run a regular expression against sample text and inspect matches.