URL Encoder / Decoder

Encode or decode URL components. Converts special characters to percent-encoded format.

100% Client-Side

What is URL Encoder / Decoder?

A URL encoder/decoder converts special characters into their percent-encoded equivalents for safe use in URLs, and reverses the process for readability. This is essential when building query strings, handling form data, or debugging API requests.

How to Use

  1. Paste a URL or text string into the input field
  2. Choose encode (to percent-encode special characters) or decode (to restore original text)
  3. The result updates in real time
  4. Copy the encoded or decoded string for use in your application

Frequently Asked Questions

What characters need to be URL-encoded?
Spaces, &, =, ?, #, /, and most non-ASCII characters must be encoded. For example, a space becomes %20 and & becomes %26.
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves characters that are valid in a full URL (like :, /, ?). encodeURIComponent encodes everything except letters, digits, and - _ . ~, suitable for query parameter values.
Why do I see + instead of %20 for spaces?
The + sign for spaces is an older convention from HTML form encoding (application/x-www-form-urlencoded). Modern URLs use %20 instead.