Formatters
Format, minify and validate code and data (JSON, XML, YAML, SQL, HTML, CSS) and convert naming cases
Beautify, minify and validate JSON, XML, YAML, TOML, SQL, HTML, CSS, JavaScript, GraphQL and more, and convert identifiers between camelCase, snake_case, kebab-case and other naming styles. Start with the JSON formatter for API payloads; use a validator when you need the exact location of an error, and a minifier before shipping assets.
Tools in this category: 38
Good places to start
All tools in this category
-
JSON Diff
Compare two JSON documents structurally: see added, removed and changed values by JSONPath, ignoring key order and formatting. Free and runs in your browser.
-
JSON Formatter
Format and pretty-print JSON with 2 spaces, 4 spaces or tabs, optionally sort keys, and get exact line and column for syntax errors. Runs in your browser.
-
JSON Validator
Validate JSON against the RFC 8259 grammar and see the exact line, column and reason of any error, plus duplicate-key warnings and structure stats.
-
SQL Formatter
Format SQL queries for 16 dialects including MySQL, PostgreSQL, SQL Server, Oracle and BigQuery. Choose keyword case and indentation. Runs in your browser.
-
camelCase
Convert text, snake_case or kebab-case names to camelCase. Handles acronyms, numbers and accented letters, converting each line separately. Free.
-
Code Beautifier
Beautify code in 14 languages – JavaScript, TypeScript, JSON, HTML, CSS, SCSS, Less, XML, YAML, GraphQL, Markdown, SQL, PHP and Python – in your browser.
-
Code Minifier
Minify JavaScript (Terser), CSS (CSSO), HTML, JSON or XML in one tool: pick the language, paste code and see the bytes saved. Free and runs in your browser.
-
CONSTANT_CASE
Convert camelCase or plain text to CONSTANT_CASE (SCREAMING_SNAKE_CASE) for constants and environment variables. Correct acronym and digit handling.
-
CSS Formatter
Beautify CSS with Prettier: one declaration per line, consistent spacing, 2 or 4 spaces or tabs, and cleanly nested media queries. Runs in your browser.
-
CSS Minifier
Minify CSS with CSSO: removes whitespace and comments, shortens colors and values and merges rules safely. Shows the bytes saved. Free, runs in your browser.
-
CSS Validator
Check CSS for syntax errors, unclosed blocks, unknown properties and invalid values using css-tree grammar data. Line and column for every issue, in-browser.
-
dot.case
Convert camelCase, snake_case or plain text to dot.case: lowercase words joined by dots, for config keys and i18n message ids. Each line converted separately.
-
GraphQL Formatter
Format GraphQL queries, mutations, fragments and SDL schemas with Prettier, keeping comments. Syntax errors show line and column. Free and in-browser.
-
HTML Formatter
Beautify HTML with Prettier: consistent indentation, one element per line and embedded CSS and JavaScript formatted too. Choose 2, 4 spaces or tabs.
-
HTML Minifier
Minify HTML safely: strip comments, collapse whitespace and drop spaces around block tags while keeping pre, textarea, script and style exactly as they are.
-
HTML Validator
Check HTML structure: unclosed, mismatched or stray tags, duplicate ids and attributes, images without alt and missing doctype, title or lang. In-browser.
-
JavaScript Minifier
Minify JavaScript with Terser: strips whitespace and comments, shortens local variable names and applies safe compressions. Runs in your browser.
-
JSON Minifier
Minify JSON by removing all insignificant whitespace while keeping values, key order and big numbers intact. Shows the size saved. Free and in-browser.
-
JSON Path Finder
List every path in a JSON document as JSONPath, JavaScript or jq syntax, click a path to see its value, or type a path to look it up. Runs in your browser.
-
JSON Query (JSONPath)
Query JSON with JSONPath: wildcards, recursive descent, slices and filter expressions like [?(@.price < 10)]. Results update as you type. Not jq syntax.
-
JSON Schema Validator
Validate JSON data against a JSON Schema (draft 2020-12, 2019-09 or 07) with Ajv and format checks. Every error shows the instance path. Runs in your browser.
-
kebab-case
Convert camelCase, snake_case or plain text to kebab-case (dash-case) for CSS classes, URLs and file names. Handles acronyms and digits, line by line.
-
lowercase
Convert any text to lowercase instantly with Unicode-aware rules for accented, Greek and Cyrillic letters. Line breaks and punctuation stay unchanged.
-
Nginx Config Formatter
Format nginx configuration: one directive per line, nested blocks indented, comments and quoted strings kept. Detects unclosed blocks and missing semicolons.
-
PascalCase
Convert text, snake_case or kebab-case to PascalCase (UpperCamelCase) for class, type and component names. Handles acronyms and numbers line by line.
-
path/case
Convert camelCase, snake_case or plain text to path/case: lowercase words joined by slashes for folder paths, routes and namespaces. Line by line, in-browser.
-
PHP Formatter
Format PHP code with Prettier's PHP plugin: PSR-12-style braces, consistent indentation and spacing. Supports PHP up to 8.4 syntax and runs in your browser.
-
Python Formatter
Format Python code with Ruff's Black-compatible formatter compiled to WebAssembly. Choose indentation and quote style; syntax errors show line and column.
-
Sentence case
Convert text to sentence case: the first letter of each sentence is capitalized and the rest is lowercase, keeping acronyms like NASA. Also splits identifiers.
-
snake_case
Convert camelCase, PascalCase, kebab-case or plain text to snake_case. Correctly splits acronyms like XMLHttpRequest and keeps digits. Each line separately.
-
SQL String Escape
Escape text for use inside a single-quoted SQL string: double the quotes (standard SQL) or use MySQL backslash escapes. Optional wrapping in quotes.
-
Title Case
Convert text to Title Case: capitalize major words while keeping short words like a, of and the lowercase (optional). Keeps acronyms and brand names.
-
TOML Formatter
Parse and re-write TOML in a normalized layout with smol-toml. Errors show line and column. Note: comments are removed and some values are normalized.
-
UPPERCASE
Convert text to UPPERCASE instantly with Unicode rules (ß becomes SS, accents kept). Spaces, punctuation and line breaks remain unchanged. Free, in-browser.
-
XML Formatter
Pretty-print XML with 2 spaces, 4 spaces or tabs. The input is checked for well-formedness first, so errors are reported with line and column.
-
XML Validator
Check whether XML is well-formed: mismatched or unclosed tags, bad attributes and invalid names are reported with line and column. Runs locally in your browser.
-
YAML Formatter
Format YAML with Prettier: consistent indentation and spacing while comments and multiple documents are preserved. Syntax errors show line and column.
-
YAML Validator
Validate YAML syntax with js-yaml: bad indentation, duplicate keys and unclosed brackets are reported with line and column. Supports multi-document files.
Other categories
- CRC Cyclic Redundancy Check algorithms for error detection
- MD Message Digest algorithms (MD2, MD4, MD5)
- SHA-1 Secure Hash Algorithm 1 - 160-bit hash function
- SHA-2 Secure Hash Algorithm 2 family (SHA-224, SHA-256, SHA-384, SHA-512)
- SHA-3 Secure Hash Algorithm 3 based on Keccak
- Keccak Keccak cryptographic hash function
- SHAKE Extendable-output functions (SHAKE128, SHAKE256)
- cSHAKE Customizable SHAKE functions
- KMAC Keccak Message Authentication Code
- Password & Security Password generation, analysis, hashing, and security tools
- Encryption & Cryptography Symmetric and asymmetric encryption, HMAC and key generation (AES, 3DES, RSA, PGP)
- Encoding Encode and decode data: Base64, Base32, Base58, URL, HTML entities, hex, Unicode and more
- Generators Generate IDs, keys, test data, QR codes, barcodes and config files (UUID, API keys, .gitignore, Dockerfile)
- Converters Convert data formats, number bases, colours, timestamps, units and currencies (JSON, CSV, YAML, XML)
- Text Tools Count, compare, clean and transform text (word count, diff, regex, case, duplicates)
- Image Tools Tools for manipulating and converting images (Compress, Resize, Convert)
- Design & CSS Generate CSS visually: shadows, gradients, flexbox and grid layouts, animations and colour palettes
- Web Tools Tools for web developers and SEO (JWT, URLs, DNS, HTTP headers, meta tags, sitemaps)
- Math & Calculators Calculators for finance, health, percentages, programmer arithmetic and everyday maths
- Time & Date Time zones, date differences, business days, timers, stopwatch and world clock