Code tools
29 toolsFormatters, minifiers, and converters for JSON, YAML, XML, SQL, and the rest of the formats a workday throws at you, plus a regex playground, mock data, and type generators. The biggest group on the site, because messy data is universal.
Like everything on loot.tools, these run entirely in your browser. Free, no account, and nothing you enter leaves the tab.
Which one do you need?
Formatting is the biggest cluster. JSON Formatter & Validator is the one most people come for: paste JSON, get it validated and pretty-printed. HTML Formatter, SQL Formatter, XML Formatter, and YAML Formatter do the same for their own formats, Code Formatter covers several languages in one tool, and Minifier & Beautifier goes the other direction, shrinking JavaScript and CSS for production.
Then come the converters. Data Converter moves data between CSV, TSV, JSON, YAML, and XML. JSON Converter focuses on JSON to and from YAML, XML, and TOML, JSON to Code generates TypeScript, Go, Python, C#, or SQL from a JSON sample, and JSON Schema Generator infers a schema from one. cURL to Code Converter rewrites a curl command as fetch, axios, or Python requests, HTML & SVG to React turns HTML or SVG into a JSX component, CSS to JS Object Converter flips styles between CSS and JS object syntax, Markdown ⇄ HTML Converter converts Markdown in both directions, and Env to JSON Converter reshapes .env files as JSON and back.
Past formatting, the JSON tools answer different questions. JSON Diff shows exactly what changed between two payloads, JSONPath Evaluator runs a JSONPath query against a big one, and Mock Data Generator fabricates realistic rows to develop against. Regex Playground tests patterns against sample text with live matches, before the pattern goes anywhere near production.
The low-level corner covers bytes and bits. Encoder / Decoder handles Base64, Base32, HTML entities, and JSON string escaping in one place. Number Base Converter, Bitwise Calculator, and IEEE 754 Float Converter deal with number bases, bit operations, and float internals. Text to Binary Converter, ASCII Table, Unicode Character Inspector, Chmod Calculator, and Markdown Table Generator each solve one small job, exactly the way their names suggest.