loot.tools

Code tools

29 tools

Formatters, 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.

Code Formatter
Format JSON, JavaScript, TypeScript, HTML, CSS, XML, YAML, SQL, or Markdown.
JSON Formatter & Validator
Format, minify, and validate JSON, with the exact line and column of any error.
JSON Diff
Compare two JSON documents and see exactly what was added, removed, or changed.
JSONPath Evaluator
Run a JSONPath query against any JSON and see every matching value and its path.
Minifier & Beautifier
Minify or beautify JavaScript and CSS, with live size savings.
HTML Formatter
Format and indent messy HTML for readability.
SQL Formatter
Format SQL queries with clean indentation and keyword casing.
XML Formatter
Format and validate XML with consistent indentation.
YAML Formatter
Format and validate YAML with configurable indentation.
JSON to Code
Generate TypeScript, Go, Python, C# types or SQL from JSON.
JSON Converter
Convert JSON to and from YAML, XML, and TOML.
cURL to Code Converter
Turn a curl command into fetch, axios, or Python code.
HTML & SVG to React
Convert HTML to JSX or turn raw SVG into a React component.
Env to JSON Converter
Convert .env files to JSON and JSON back to .env.
CSS to JS Object Converter
Convert CSS to a JS style object and back.
JSON Schema Generator
Generate a JSON Schema from a sample JSON document.
Number Base Converter
Convert numbers between binary, octal, decimal, hex, and any base 2-36.
IEEE 754 Float Converter
See the sign, exponent, and mantissa bits behind any float or double.
ASCII Table
Look up any ASCII character with its decimal, hex, octal, and binary code.
Unicode Character Inspector
Break any text into its Unicode code points, bytes, and escape forms.
Text to Binary Converter
Convert text to binary, hex, decimal, or octal and back.
Chmod Calculator
Convert Unix file permissions between octal (755) and symbolic (rwxr-xr-x).
Markdown Table Generator
Turn spreadsheet rows or CSV into a clean GitHub-flavored Markdown table.
Markdown ⇄ HTML Converter
Convert Markdown to HTML and HTML back to Markdown.
Mock Data Generator
Generate rows of realistic fake data and export them as JSON, CSV, or SQL inserts.
Bitwise Calculator
Run AND, OR, XOR, NOT, and bit shifts on integers with binary and hex output.
Data Converter
Convert between CSV, TSV, JSON, YAML, and XML with two-way sync.
Encoder / Decoder
Encode and decode Base64, Base32, HTML entities, and JSON strings.
Regex Playground
Test regex patterns and run search-and-replace instantly.

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.