Skip to content
Tools

URL Encoder & Decoder

Percent-encode and decode URLs and query parameters.

Local
Output

What this tool does

This tool percent-encodes text so it can travel safely inside a URL, and decodes percent-encoded text back to its readable form. Pick the direction with the mode, and pick how much to encode with the scope.

Component or full URL

Component encodes every reserved character, including / ? & = and the space. Use it for a single value you are about to place inside a query string, so its contents cannot be mistaken for URL structure. Full URL leaves the structural characters alone and only encodes what a whole URL cannot contain, such as spaces. Use it when you have a complete URL to tidy up.

Why encoding matters

A raw & in a query value would be read as the start of the next parameter, and a space is not allowed in a URL at all. Percent-encoding replaces those characters with a % followed by their byte value, so the value survives intact. Non-ASCII characters are encoded as their UTF-8 bytes.

Common use cases

  • Building a query string by hand for a request or a test.
  • Reading an encoded redirect or callback URL from a log.
  • Fixing a link where a space or ampersand broke the parameters.

Frequently asked questions

What is the difference between the two modes?
Component mode encodes every reserved character, for a single query value. Full mode keeps URL structure such as : / ? & intact, for a whole URL.
Why did my decode fail?
A lone % or an incomplete sequence such as %E0%A4 is not valid percent-encoding, so it cannot be decoded. The tool tells you when that happens.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.