logo皮皮强

Code Formatter & Highlighter

Format and syntax-highlight code in 20 languages including JSON, JavaScript, TypeScript, HTML, CSS, SQL, Python and Go. Re-indent with one click, view line numbers, copy or download. Grammars load on demand and code never leaves your browser.
How it works: Paste code, pick a language and click Format to re-indent it and show syntax highlighting on the right. Grammars are downloaded on demand only when you switch languages. Everything runs locally in your browser and your code is never uploaded.
Language
Indent
2 spaces
Source code
Formatted result
JSON
{
  "name": "toolbox",
  "version": 2,
  "features": [
    "format",
    "highlight"
  ],
  "limits": {
    "lines": 4000,
    "chars": 200000
  },
  "enabled": true
}
13 lines · 167 chars