What URL encoding is
A URL can safely contain only a limited set of characters. Spaces, accents, symbols such as & and #, and non-Latin letters have to be written as a percent sign followed by two hex digits. A space becomes %20 and an ampersand becomes %26. This is called percent-encoding or URL encoding.
This tool encodes text so it can sit safely inside a URL or query string, and decodes percent-encoded text back to readable form. It uses the same rules as encodeURIComponent and decodeURIComponent in JavaScript.
How to use it
- Choose Encode or Decode.
- Paste your text. The result updates as you type.
- Copy the output, or use the switch to flip it back into the input.
- If decoding fails, the tool tells you the text has an invalid percent sequence.
Characters and their encodings
Common characters and how they are encoded:
space -> %20
& -> %26
= -> %3D
? -> %3F
# -> %23
/ -> %2F
+ -> %2B
é -> %C3%A9Common mistakes
- Encoding a whole URL when you only meant to encode a value. Encode each query value, not the https:// part or the slashes.
- Encoding twice. A value such as %2520 means the percent sign itself was encoded again.
- Treating + as a space. In query strings + often means space, but in the path it is a plus. This tool encodes a space as %20.
Related tools
- Base64 Encoder & Decoder: Encode and decode Base64 strings for APIs, data transfer, and debugging.
- String Escape & Unescape Tool: Escape or unescape text for JSON, JavaScript, HTML, XML, SQL, CSV and regular expressions.
- JWT Token Decoder: Decode JSON Web Tokens (JWT) locally in your browser. Inspect headers, payload, and signatures.
- Slug Generator: Turn titles into clean URL slugs. Handles accents and symbols, with bulk lists and a max length.
