URL Encoder & Decoder

Percent-encode and decode URLs.

Result

The result will appear here.

About the URL Encoder & Decoder

Percent-encode and decode URLs and URI components safely. Converts spaces and special characters to their %xx escapes and back — essential when building query strings, links and API requests.

How to use it

  1. 1Paste text to encode, or an encoded string to decode.
  2. 2Switch direction with one click.
  3. 3Copy the result.

When you need percent-encoding

URLs can only contain a limited set of characters, so anything outside that set — spaces, accents, and reserved symbols like &, =, ? and # — has to be escaped as a percent code before it can travel safely in a link. This matters most when you build query strings from user input or data: a search term containing an ampersand, or a name with a space, will corrupt the URL unless it's encoded. This tool converts in both directions, so you can also decode a %-laden URL back into readable text to see what it actually contains.

Common uses

  • Building a query string from a search term or value that may contain special characters.
  • Decoding a messy, percent-encoded URL back into readable text.
  • Preparing a parameter to pass safely into an API request.

Frequently asked questions

What's the difference between encoding a component and a full URL?
Component encoding escapes characters like & and = that have meaning in a URL; use it for individual query values, not whole URLs.
Why did my link break when I pasted it somewhere?
Spaces and characters like &, ?, # and + have special meaning in URLs. Percent-encoding turns them into safe %xx escapes so the link survives being placed in a query string or passed to an API.