Encoding

URL Encoder / Decoder

Encode URL components or decode percent-encoded text in your browser.

Examples
  • hello world becomes hello%20world
  • Tom & Jerry becomes Tom%20%26%20Jerry
  • q=red shoes can use q%3Dred%20shoes as a component.

How to use URL Encoder / Decoder

Best for

  • Encoding URL components, query values, and reserved characters.
  • Decoding percent-encoded text into readable text.
  • Checking how spaces, ampersands, and equals signs are represented in a URL component.

Steps

  1. Paste a URL component or encoded string into the input box.
  2. Choose Encode or Decode.
  3. For encoding, choose whether spaces become %20 or plus signs for form-style values.

Notes

  • Usually encode individual URL components, not an entire URL.
  • Use HTML entities for HTML text, not for URL query values.

FAQ

Should spaces be encoded as %20 or plus signs?

%20 is the common percent-encoded form for spaces in URL components. Plus signs are used in some form-style query values.

Should I encode a whole URL?

Usually no. Encode the path segment or query value that needs escaping so the URL structure remains intact.