URL Encoder / Decoder

Percent-encode text for use in a URL, or decode an encoded URL back to readable text.

Percent-encoding (RFC 3986), UTF-8 · By Stuart Mathieson · Updated October 2026

Everything runs in your browser - nothing you enter is sent to a server.

How URL encoding works

URLs can only contain a limited set of characters, and some characters have special jobs: ? starts the query string, & separates parameters, # starts a fragment. Percent-encoding (also called URL encoding) lets any text travel safely inside a URL. Each byte that isn't allowed is written as % followed by two hexadecimal digits:

Percent-encoding examples
CharacterEncodedWhy
space%20Spaces aren't allowed in URLs
&%26Would start a new parameter
?%3FWould start the query string
/%2FWould start a new path segment
é%C3%A9Two bytes in UTF-8

Letters, digits and - . _ ~ never need encoding - RFC 3986 calls them unreserved characters. Accented letters, other scripts and emoji are first converted to UTF-8 bytes, so one character can become several %XX groups.

Which mode to use

Decoding and common problems

Paste a full URL in either mode and the tool also lists its query parameters, decoded - handy for reading long tracking or redirect links.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI is for a complete URL and leaves characters like : / ? & = # alone so the URL still works. encodeURIComponent is for one part of a URL, such as a parameter value, and encodes those characters too.

Why is a space sometimes %20 and sometimes +?

In URLs a space is %20. HTML form submissions use an older format where a space becomes +. Both decode to a space in a query string, but only %20 is correct in a URL path.

What does %2520 mean?

The text was encoded twice. %25 is an encoded percent sign, so %2520 decodes to %20, which decodes again to a space.

Is URL encoding a form of encryption?

No. It only makes text safe to put in a URL, and anyone can decode it. Never rely on it to hide information.

Sources