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 JSONPretty-print JSON with two-space indentation.
  • Minify JSONRemove insignificant whitespace from JSON.
  • Escape JSONEscape quotes, backslashes, and newlines so the text can sit inside a JSON string. Does not add surrounding quotes.
  • Unescape JSONReverse of Escape. Turns backslash-escapes into real characters. Also accepts a quoted JSON string.
  • StringifyWrap the input as a JSON string, the same as JSON.stringify on text. Includes the surrounding quotes.
  • Parse JSONParse JSON. A JSON string becomes raw text. Objects and arrays are pretty-printed.
  • Validate JSONCheck that the input is valid JSON and describe its shape.

Encode

  • Base64 encodeEncode UTF-8 text as standard Base64.
  • Base64 decodeDecode standard or URL-safe Base64 to UTF-8 text. Whitespace is ignored.
  • Base64url encodeEncode UTF-8 text as URL-safe Base64 without padding.
  • URL encodePercent-encode text with encodeURIComponent. Use this for query values.
  • URL decodeDecode percent-encoding. Plus signs become spaces.
  • HTML escapeEscape & < > " ' as HTML entities.
  • HTML unescapeTurn HTML entities, including numeric ones, back into characters.
  • Text to hexEncode UTF-8 text as space-separated hex bytes.
  • Hex to textDecode hex bytes to UTF-8 text. Spaces and 0x prefixes are ignored.
  • HashSHA-1, SHA-256, and SHA-512 of the UTF-8 text. Computed in the browser.
  • UUIDGenerate a random UUID (version 4).

Web

  • URL parseSplit an absolute URL into protocol, host, path, query, and hash.
  • Query to JSONTurn a query string, or the query of a full URL, into JSON.
  • JSON to queryBuild a query string from a JSON object. Arrays become repeated keys.
  • JWT decodeShow a JWT header and payload. The signature is not verified. A leading Bearer prefix is ignored.
  • Strip HTMLRemove tags, script, and style, then unescape entities.

Text

  • UppercaseConvert text to uppercase.
  • LowercaseConvert text to lowercase.
  • Trim linesTrim whitespace from the start and end of each line.
  • Sort linesSort lines alphabetically.
  • Unique linesDrop duplicate lines, keeping the first occurrence.
  • CountCount characters, words, and lines.

Time

  • Unix to UTCConvert a Unix timestamp to UTC. Values of 11 digits or more are treated as milliseconds.
  • UTC to UnixConvert a date to a Unix timestamp in seconds and milliseconds.

Data

  • Hex to RGBConvert #RGB, #RRGGBB, or #RRGGBBAA to CSS rgb() or rgba().
  • RGB to hexConvert rgb(), rgba(), or r, g, b to a hex color.
  • JSON to CSVConvert a JSON object, or an array of objects, to CSV.
  • CSV to JSONConvert CSV to a JSON array of objects. The first row is the header.
  • CSV to TSVChange commas to tabs, keeping quoted fields intact.
  • TSV to CSVChange tabs to commas, quoting fields that need it.