Developer Studio · 37 tools
Code Formatters
37 free code formatters and converters: SQL in 17 dialects, CSS, XML, YAML, TOML, GraphQL, CSV and JSON, formatted in your browser.
Part of Developer Studio.
Start here
-
SQL Formatter
Format SQL queries with proper keywords capitalization, indentation, and line breaks
-
XML Formatter
Beautify XML with proper indentation and structure for better readability and debugging
-
CSS Minifier
Minify CSS by removing whitespace, comments, and unnecessary characters to reduce file size
-
CSV to JSON
Convert CSV table to JSON array format with proper parsing
-
JSON to CSV
Convert JSON array to CSV table format for spreadsheet import
-
JSON to XML
Convert JSON data to XML format with proper tags and structure
-
JSON to YAML
Convert JSON to YAML format with proper indentation and structure
All code formatters
-
CSV to JSON
Convert CSV table to JSON array format with proper parsing
-
JSON to CSV
Convert JSON array to CSV table format for spreadsheet import
-
JSON to XML
Convert JSON data to XML format with proper tags and structure
-
JSON to YAML
Convert JSON to YAML format with proper indentation and structure
-
XML to JSON
Convert XML to JSON format preserving data structure and hierarchy
-
JSON to Query String
Convert a JSON object into a URL query string with bracket notation for nested objects and arrays, fully percent-encoded.
-
JSON to TOML
Convert JSON to TOML configuration format with proper syntax
-
JSONC to JSON
Strip comments and trailing commas from JSONC, then validate and reformat as clean JSON
-
TOML to JSON
Convert TOML configuration to JSON format with validation
-
YAML to JSON
Convert YAML to JSON format with proper parsing and validation
-
CSS Minifier
Minify CSS by removing whitespace, comments, and unnecessary characters to reduce file size
-
PHP Formatter
Format PHP code with proper indentation, brackets, and PSR standards
-
SQL Formatter
Format SQL queries with proper keywords capitalization, indentation, and line breaks
-
Universal Code Beautifier
Generic code beautifier that works with any programming language syntax
-
XML Formatter
Beautify XML with proper indentation and structure for better readability and debugging
-
YAML Formatter
Format and validate YAML configuration files with proper indentation and structure
-
Blank Line Collapser
Collapse runs of consecutive blank lines into a single blank line for tidy documents
-
C/C++ Formatter
Format C and C++ code with proper indentation and bracket placement
-
C# Formatter
Format C# code with proper indentation and Microsoft coding conventions
-
CSS Formatter
Beautify and format CSS code with proper indentation and structure for better readability
-
CSV Column Aligner
Align CSV columns into an even monospace table so data is easy to read and scan
-
Env File Sorter
Sort .env files alphabetically by key, keep comments grouped and drop empty lines
-
GraphQL Formatter
Format GraphQL queries and schemas with proper indentation and structure
-
Indentation Converter
Convert between tabs and spaces with customizable tab size for code formatting
-
INI Formatter
Clean up INI config files with normalized sections, spacing around equals and tidy blank lines
-
Java Formatter
Format Java code with proper indentation, brackets, and Java conventions
-
Java Properties Formatter
Normalize Java .properties files to key=value form, group comments and optionally sort keys
-
Python Code Cleaner
Convert tabs to spaces, trim trailing whitespace and tidy blank lines in Python
-
SCSS/LESS Formatter
Beautify SCSS, LESS and CSS with brace-based indentation and one declaration per line
-
SQL Minifier
Minify SQL by stripping comments and collapsing whitespace while preserving string literals
-
TOML Formatter
Format TOML configuration files with proper structure and indentation
-
Whitespace Normalizer
Normalize line endings to LF, strip trailing whitespace and collapse trailing blank lines
-
XML Minifier
Minify XML by removing whitespace and line breaks to create compact output
-
CSV to Markdown Table
Convert CSV data into a clean, aligned GitHub-flavored Markdown table with a header row
-
TSV to CSV
Convert tab-separated values to CSV with proper quoting for fields containing commas or quotes
-
Code Diff Viewer
Compare two code snippets and highlight differences with additions and deletions
-
Line Counter
Count lines of code, blank lines, comment lines, and character statistics
No tools match. Try another word, or .
About Code Formatters
Code Formatters holds 37 tools that tidy code or move data between formats. The SQL Formatter supports 17 dialects and capitalises keywords consistently, the CSS Minifier strips whitespace safely, and the XML Formatter indents documents and reports where they are not well formed. YAML, TOML, GraphQL and SCSS formatting use the same engines many code editors rely on, such as Prettier.
Data converters cover JSON, XML, YAML, TOML, CSV, TSV and Markdown tables, which helps when a config needs to change format or a spreadsheet export needs to become JSON. The formatters are honest about their limits. PHP, Java, C, C++ and C# have no full formatter available in the browser, so those tools re-indent by braces and say so on the result. The Code Diff tool compares two versions and can download a unified .diff file. Everything runs locally.
Frequently asked questions
Which SQL dialects are supported?
Will minifying CSS break my styles?
Why does the Java formatter only fix indentation?
Other studios
- PDF StudioMerge, compress, sign and convert PDFs on your device.
- Image StudioResize, compress, convert and clean up images privately.
- Media StudioTrim, convert and record video and audio in the browser.
- Money StudioLoans, savings, tax and seller fees, with the maths shown.
- Health StudioCalories, BMI, heart-rate zones and sleep, explained.
- Calc & Convert StudioMaths, units, dates and everyday sums, exact to the digit.
- Design StudioColours, gradients, CSS and SVG you can copy straight in.
- Writing StudioCount, clean, transform and draft text without distractions.
- Office & Business StudioInvoices, documents, charts and policies, tidy and fast.
- Study StudioFlashcards, citations, quizzes and revision timers.
- Security StudioPasswords, hashes and ciphers generated on your device.
- Fun StudioWheels, dice, pickers and fancy text for when chance decides.