Skip to content
NMSnabbit.

URL Encoder & Decoder

Percent-encode text for URLs or decode encoded URL components.

Encoders & Decoders Runs in your browser

What is URL encoding?

A space becomes %20, an ampersand %26: percent encoding replaces characters that would break a URL with a % followed by two hex digits. This tool encodes and decodes single URL components, the way encodeURIComponent does, leaving letters, digits and a few safe symbols untouched. Use it to build query-string values by hand or to make an encoded link from a log readable again.

How to use the URL Encode / Decode

  1. 1 Paste a raw value or an already-encoded component.
  2. 2 Pick Encode to escape it, Decode to reverse it.
  3. 3 Watch for a decode warning if a % sequence is malformed.
  4. 4 Copy the output into your URL or report.

What you can use it for

  • Building safe query-string parameters.
  • Decoding URLs from logs or analytics.
  • Encoding search terms or redirect targets.
  • Inspecting encoded values inside links.

Frequently asked questions

What is URL encoding?
Percent encoding swaps reserved and non-ASCII characters for a % plus two hex digits of their UTF-8 bytes: a space is %20, é is %C3%A9. Browsers do this to every URL under the hood.
What characters get encoded?
Input is treated as a URL component, so &, =, ?, / and every non-ASCII character get escaped. Letters, digits and the unreserved set - _ . ! ~ * ' ( ) pass through untouched.
Why did decoding throw an error?
A malformed percent sequence, usually a % not followed by two hex digits. That often means a URL was truncated mid-sequence, or encoded twice and then partially decoded.

Related tools

More Encoders & Decoders

More tools like this:

All Encoders & Decoders