Code formatters
12 toolsEach formatter parses your code with a proper language parser before printing it, so the result is consistent and syntax errors are reported with a line number instead of producing a mangled file.
JSON Formatter Pretty-print, minify and sort JSON without losing precision. JSON Validator Find JSON syntax errors with the exact line and column. JavaScript Formatter Format JavaScript with Prettier's parser and consistent style options. HTML Formatter Format HTML with Prettier's parser and consistent style options. XML Formatter Indent, minify and validate XML documents. CSS Formatter Format CSS with Prettier's parser and consistent style options. YAML Formatter Format YAML with Prettier's parser and consistent style options. TypeScript Formatter Format TypeScript with Prettier's parser and consistent style options. Markdown Formatter Format Markdown with Prettier's parser and consistent style options. SCSS Formatter Format SCSS with Prettier's parser and consistent style options. GraphQL Formatter Format GraphQL with Prettier's parser and consistent style options. LESS Formatter Format LESS with Prettier's parser and consistent style options.
More tools
SQL toolsFormat, minify and tidy SQL for MySQL, PostgreSQL, SQL Server, Oracle, SQLite and more. Text toolsCompare text, count words and characters, change case and clean up lines. Developer and data toolsConvert JSON and CSV, encode Base64 and URLs, test regular expressions, generate UUIDs and convert timestamps.