URL Encoder Decoder

Encode and decode URLs.

Your text is processed in your browser.

Use Whole URL for a link, or Single component for one query value or path segment.

Use Whole URL for a link, or Single component for one query value or path segment.

Encode and decode URL components and links instantly. A developer utility that runs entirely client-side in your browser.

How to use it

  1. Choose Encode or Decode.
  2. Select Whole URL for a link or Single component for one query value or path segment.
  3. Paste your input, convert automatically or with the action button, then copy the valid result.

How URL encoding and decoding work

Percent encoding represents bytes as %HH hexadecimal pairs. Text is encoded as UTF-8: a space becomes %20 and é becomes %C3%A9.

Whole URL or single component?

Whole URL uses encodeURI and keeps separators such as /, ?, & and =. Single component uses encodeURIComponent and escapes those separators, for example when encoding one query value. Neither mode validates a URL or converts internationalized domain names.

Encoding examples
CharacterWhole URLSingle component
Space%20%20
//%2F
??%3F
&&%26
++%2B
%%25%25
é%C3%A9%C3%A9
😀%F0%9F%98%80%F0%9F%98%80

What changes when decoding?

Whole URL uses decodeURI and preserves encoded reserved characters: %2F stays %2F. Single component uses decodeURIComponent and turns it into /. Both modes keep + as a plus sign; neither implements form decoding.

Encoding is not encryption. Encode raw text once: encoding %20 again produces %2520. Decoding runs once too. Invalid escapes or non-UTF-8 encoded bytes produce an error, not a partial result.

ECMAScript — URI handling functions

Frequently asked questions

What is the difference between encoding a URL and a component?

Whole URL uses encodeURI and keeps separators such as /, ?, & and =. Single component uses encodeURIComponent and escapes those separators, for example when encoding one query value. Neither mode validates a URL or converts internationalized domain names.

Why do spaces become %20?

A space becomes %20. Some form formats use + for spaces, but this tool does not apply that convention: + remains a plus sign in both decoding modes.

Does it handle accents and non-Latin scripts?

Yes. Characters are encoded as UTF-8 first, so accented letters, Cyrillic, Chinese and emoji all round-trip correctly.

Why does decoding leave %2F unchanged?

Whole URL uses decodeURI and preserves encoded reserved characters: %2F stays %2F. Single component uses decodeURIComponent and turns it into /. Both modes keep + as a plus sign; neither implements form decoding.

Recommended Tools