Loading…

Developer tools10.05

URL Encode and Decode

Encode text for use in a URL (%20, %C3%A9…), decode web addresses, and break a URL down into its parts and query parameters.

Back to Developer tools
Operation

For a parameter or part of a URL. Also encodes / ? & = #.

This runs entirely in your browser. We don’t store any data.

Result

How to use it

  1. 01

    Choose an operation: encode a value, encode a full URL, or decode.

  2. 02

    Paste your text. The result appears instantly.

  3. 03

    If you paste a full URL, you’ll see its domain, path, and each decoded parameter below.

How it works

URLs can only contain certain ASCII characters. Everything else (spaces, accented letters, emoji…) is written with percent-encoding, where each byte of the character’s UTF-8 form becomes %XX. For example, a space is %20 and é is %C3%A9.

“Encode value” uses encodeURIComponent and also encodes characters that have a special meaning in URLs (/ ? & = #), so it’s the right choice for a parameter value. “Encode full URL” uses encodeURI and leaves those characters alone.

HTML forms send spaces as +. When you’re decoding form data, check the option to turn them back into spaces.

Examples

  • A parameter value

    “mac & cheese café” encodes to mac%20%26%20cheese%20caf%C3%A9. Left unencoded, the & would split the parameter in two.

  • Reading a tracking URL

    Paste a URL with utm_ parameters to see each one decoded separately.

  • Fixing a broken link

    If a link is full of %25, it was encoded twice. Decode it until you get back to the original text.

Frequently asked questions

Why do spaces show up as %20 or +?

In a URL path, a space is %20. In form data (application/x-www-form-urlencoded), + is common. Both are correct in their own context.

Is URL encoding the same as encryption?

No. Encoding only replaces characters that aren’t allowed, and anyone can reverse it. It doesn’t hide any information.