URL Encoder / Decoder

Percent-encode or decode URLs and query string components online.

encodeURI vs encodeURIComponent

Encode uses encodeURI, which is meant for encoding a full URL and leaves characters like /, :, and ? untouched.Encode Component uses encodeURIComponent, which escapes those characters too and is what you want when encoding a single query parameter value.

Share on LinkedInShare on X
Link to this tool

Copy this HTML to cite this tool from your own site or article.

About URL Encoder / Decoder

URL Encoder / Decoder percent-encodes special characters in URLs or decodes percent-encoded query parameters back to readable text.

How to use URL Encoder / Decoder

  1. Paste your URL or parameter string into the text box.
  2. Choose whether to Encode or Decode the input string.
  3. Select standard URL encoding or RFC 3986 component encoding.
  4. Click Process and copy the transformed URL string.

Examples

Input: hello world & test Encoded Output: hello%20world%20%26%20test

FAQ

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves protocol and domain syntax delimiters, whereas encodeURIComponent encodes all special characters for parameter safety.

Does URL decoding handle plus signs as spaces?

Yes. Plus signs (+) in query string components decode to space characters.