Developer tools
Free in-browser tools to format, minify, escape, stringify, and parse JSON, encode and decode Base64, and convert URLs, HTML, hashes, timestamps, and CSV. Nothing you paste leaves the browser.
Paste text and press the button. The conversion runs on this device.
Format JSON
Pretty-print JSON with two-space indentation.
Ctrl/⌘ + Enter
All tools
JSON
- Format JSON — Pretty-print JSON with two-space indentation.
- Minify JSON — Remove insignificant whitespace from JSON.
- Escape JSON — Escape quotes, backslashes, and newlines so the text can sit inside a JSON string. Does not add surrounding quotes.
- Unescape JSON — Reverse of Escape. Turns backslash-escapes into real characters. Also accepts a quoted JSON string.
- Stringify — Wrap the input as a JSON string, the same as JSON.stringify on text. Includes the surrounding quotes.
- Parse JSON — Parse JSON. A JSON string becomes raw text. Objects and arrays are pretty-printed.
- Validate JSON — Check that the input is valid JSON and describe its shape.
Encode
- Base64 encode — Encode UTF-8 text as standard Base64.
- Base64 decode — Decode standard or URL-safe Base64 to UTF-8 text. Whitespace is ignored.
- Base64url encode — Encode UTF-8 text as URL-safe Base64 without padding.
- URL encode — Percent-encode text with encodeURIComponent. Use this for query values.
- URL decode — Decode percent-encoding. Plus signs become spaces.
- HTML escape — Escape & < > " ' as HTML entities.
- HTML unescape — Turn HTML entities, including numeric ones, back into characters.
- Text to hex — Encode UTF-8 text as space-separated hex bytes.
- Hex to text — Decode hex bytes to UTF-8 text. Spaces and 0x prefixes are ignored.
- Hash — SHA-1, SHA-256, and SHA-512 of the UTF-8 text. Computed in the browser.
- UUID — Generate a random UUID (version 4).
Web
- URL parse — Split an absolute URL into protocol, host, path, query, and hash.
- Query to JSON — Turn a query string, or the query of a full URL, into JSON.
- JSON to query — Build a query string from a JSON object. Arrays become repeated keys.
- JWT decode — Show a JWT header and payload. The signature is not verified. A leading Bearer prefix is ignored.
- Strip HTML — Remove tags, script, and style, then unescape entities.
Text
- Uppercase — Convert text to uppercase.
- Lowercase — Convert text to lowercase.
- Trim lines — Trim whitespace from the start and end of each line.
- Sort lines — Sort lines alphabetically.
- Unique lines — Drop duplicate lines, keeping the first occurrence.
- Count — Count characters, words, and lines.
Time
- Unix to UTC — Convert a Unix timestamp to UTC. Values of 11 digits or more are treated as milliseconds.
- UTC to Unix — Convert a date to a Unix timestamp in seconds and milliseconds.
Data
- Hex to RGB — Convert #RGB, #RRGGBB, or #RRGGBBAA to CSS rgb() or rgba().
- RGB to hex — Convert rgb(), rgba(), or r, g, b to a hex color.
- JSON to CSV — Convert a JSON object, or an array of objects, to CSV.
- CSV to JSON — Convert CSV to a JSON array of objects. The first row is the header.
- CSV to TSV — Change commas to tabs, keeping quoted fields intact.
- TSV to CSV — Change tabs to commas, quoting fields that need it.