Formatter and converter
Paste or open JSON, YAML, TOML, CSV, XML, SQL or Protocol Buffers text, and the language is detected for you. Format makes it readable, Minify makes it compact, Compare shows what changed between two versions, and Convert shows it in another format, encoded or hashed.
Format and minify
- JSON: values kept exactly as written, and several values one after another (JSON Lines) supported. JSON with comments (tsconfig.json, .jsonc) and JSON5 keep their comments.
- YAML: block layout with comments and multiple documents kept; minified to compact flow style that is still valid YAML.
- TOML: checked against the spec, tidied with comments and values kept exactly as written.
- CSV and TSV: checked, with rows and columns counted.
- XML: one element per line, with text, comments and CDATA kept exactly as written; minified to one line.
- SQL: 14 dialects, keywords in upper, lower or original case; minified to one line without touching strings or hints.
- Proto Text: the Protocol Buffers text format, with comments kept when formatting.
Convert, decode, encode and hash
The Convert / Encode / Hash menu shows the text below the editor as JSON, JSON5, YAML, TOML, XML or CSV, as code (types or data in TypeScript, Go, C#, Java, Python, Kotlin, Dart, Swift, Rust or PHP), encoded (Base64, gzip, URL, HTML entities, JSON string) or hashed (SHA-256, SHA-512, SHA-1, MD5, HMAC), live as you type. Encoded text shows what it holds there by itself, such as the JSON inside Base64, or a JWT's header and payload with when it expires.
Errors you can understand
The text is checked as you type. Problems are explained in plain words and underlined in the editor, and one click takes you to the line and column.
Compare two versions
Compare puts your text next to a second editor, with changed lines and words highlighted, every line shown, and a list of just the diffs.
Keyboard shortcuts
- Format: Shift+Alt+F (⌥⇧F on a Mac)
- Minify: Shift+Alt+M (⌥⇧M on a Mac)
- Undo: Ctrl+Z (⌘Z on a Mac). Each Format or Minify is a step of its own.
- Find and replace: Ctrl+F (⌘F on a Mac)
Private: nothing is uploaded
Formatting, checking and comparing all happen in your browser. Your documents are saved in the browser's own storage on this computer, not on a server, so they never leave your device.
With your permission, we count anonymous visits (which pages and tools are used), never what you type. See Privacy.
Questions
Which languages are supported?
JSON (including JSON Lines, JSON with comments and JSON5), YAML, TOML, CSV and TSV, XML, SQL in 14 dialects, the Protocol Buffers text format and query results as psql or MySQL print them (shown as a table), plus Base64, URL encoding, HTML entities and JSON strings to decode and encode, and JSON Web Tokens to read. The language is detected automatically (plain text when it is none of these), or you can choose it.
What is a .leandevkit file?
A Formatter tab saved from this site: its text, both sides when comparing, and the language of each. In Chrome and Edge, Settings can keep every tab as a .leandevkit file in a folder you choose, and "Open a file" opens one as a tab again. A diagram can be a .leandevkit file too, opened on the Diagrams page.
Is my data uploaded anywhere?
Your documents aren't: everything runs in your browser, and they are saved on your computer, in the browser's storage for this site. With your permission we count anonymous visits, never their content.
More tools
- JSON Formatter, Validator & Minifier
- JSON Diff – Compare Two JSON Files Online
- JSON5 & JSON with Comments Formatter
- YAML Formatter, Validator & Minifier
- YAML Diff – Compare Two YAML Files Online
- TOML Formatter & Validator
- TOML Compare – Compare Two TOML Files Online
- CSV Validator & Formatter (CSV, TSV)
- CSV Viewer – Open CSV Files as a Table
- CSV Compare – Compare Two CSV Files Online
- XML Formatter, Validator & Minifier
- XML Diff – Compare Two XML Files Online
- SQL Formatter & Beautifier
- PostgreSQL Formatter & SQL Beautifier
- MySQL Formatter & SQL Beautifier
- SQL Server (T-SQL) Formatter & Beautifier
- Oracle SQL & PL/SQL Formatter
- SQL Query Diff – Compare Two SQL Queries
- Protobuf Text Format (textproto) Formatter
- Protobuf Text Diff – Compare textproto Messages
- Base64 Decoder – Text, JSON, Images and Files
- Base64 Encode – Text and Files to Base64
- Base64 to Image – Preview and Download
- URL Decoder & Parser (Percent-Decoding)
- URL Encode – Percent-Encode Text Online
- HTML Decode – Unescape HTML Entities Online
- HTML Encode – Escape HTML Special Characters
- JSON Unescape – Read Stringified JSON
- JSON Escape – Turn Text into a JSON String
- JSON to YAML Converter
- YAML to JSON Converter
- JSON to TOML Converter
- TOML to JSON Converter
- CSV to JSON Converter
- JSON to CSV Converter
- psql Output to CSV Converter
- XML to JSON Converter
- JSON to XML Converter
- Protobuf Text to JSON Converter (textproto)
- JSON Schema Validator for JSON and YAML
- JSON Schema Generator from JSON, YAML or CSV
- JSON to TypeScript – Interfaces from JSON
- JSON to Go Struct Converter
- JSON to C# Class Converter
- JSON to Java Class & Record Converter
- JSON to Python Dataclass, Pydantic & Dict
- JSON to Kotlin Data Class Converter
- JSON to Dart Model with fromJson & toJson
- JSON to Swift Codable Struct Converter
- JSON to Rust Struct Converter (serde)
- JSON to PHP Array & Class Converter
- Diff Checker – Compare Text & Code Side by Side
- Free Online Diagram Maker & Editor
- Crypto Tools: Passwords, Keys, Hashes & JWTs
- Timestamp, Cron, Regex & UUID Utilities