DevTool Desk

URL Encode/Decode

Component mode encodes every reserved character (&, =, ?, /, etc.) — use this for a single query parameter value.

Output

Percent-encoding (URL encoding) replaces characters that aren't safe in a URL with a '%' followed by their hex code. This tool encodes or decodes text live as you type, with a toggle between 'Component' mode (for a single query parameter's value) and 'Full URI' mode (for an entire URL, which leaves structural characters like '/', '?', and '&' untouched).

Frequently asked questions

What's the difference between Component and Full URI mode?

Component mode (encodeURIComponent) escapes every reserved character, including &, =, ?, and /, so it's safe to drop into a single query string value. Full URI mode (encodeURI) assumes you're encoding a complete URL and leaves those structural characters alone so the URL stays valid.

Why do I get a decode error?

Decoding fails when the input contains a '%' that isn't followed by two valid hex digits, or an incomplete multi-byte UTF-8 sequence — usually a sign the text wasn't actually percent-encoded, or was truncated.