URL Encoder & Decoder

Percent-encode or decode URLs and query parameters.

Advertisement
Advertisement

About the URL Encoder & Decoder

URL encoding (also called percent-encoding) replaces characters that are unsafe in a web address — spaces, ampersands, question marks, accents — with a percent sign followed by their hexadecimal code. This tool encodes text so it can be safely placed in a URL or query string, and decodes encoded URLs back into readable text. Toggle component mode to correctly encode individual query parameter values.

How to use it

  1. Paste the text or URL you want to convert.
  2. Choose component encoding for a single query value, or full-URL encoding to preserve the structure.
  3. Click Encode or Decode and copy the result.
Advertisement

Frequently asked questions

What is the difference between encode and encode component?

encodeURIComponent escapes everything that is not a literal — ideal for a single query value. encodeURI keeps URL structure characters like : / ? & intact.

Why do spaces become %20?

Spaces are not allowed in URLs, so they are replaced with their percent-encoded value %20 (or sometimes a plus sign in form data).

Is anything sent to a server?

No. Encoding and decoding run entirely in your browser.

Related tools

Advertisement