URL Encoders

URL Encode or Decode plain text, JSON, XML, and YAML data for safe URL transmission.
All processing happens locally in your browser — your data is never uploaded to any server.
Format: Direction:
How to use: Choose a format (URL / JSON / XML / YAML) and direction (Encode / Decode), then click Process.
Full encode uses encodeURIComponent for complete URL safety. When unchecked (Light mode), only format-specific structural characters are encoded — output stays more readable.
Validate before encode checks that your input is valid JSON/XML/YAML before encoding. Disable to encode raw text as-is.
Decode: Reverses percent-encoding. For JSON/YAML, decoded output is pretty-printed with configurable indentation.
Sample: loads a format-specific example for the current direction — raw text when encoding, percent-encoded text when decoding.
What is percent-encoding?

URLs may only carry a limited set of characters, so anything else is percent-encoded: the character is written as its UTF-8 bytes, each byte as %XX — 中 becomes %E4%B8%AD. Letters, digits and - _ . ~ never need escaping (the RFC 3986 unreserved set); reserved characters such as / ? & = are escaped only when they would otherwise be read as URL structure.

A space has two legal encodings: %20 in plain URLs, but + in an application/x-www-form-urlencoded form body — the same text can legitimately look different depending on where it travelled.