fixtdoc

URL Encode / Decode

Percent-encode text for a URL, or decode an encoded URL back to readable text, with component and full URL modes.

Files stay on your device

0 characters

Direction

Mode

Component mode escapes everything except letters, digits and a few marks, which is right for a query value. Full URL mode keeps the URL structure (slashes, question marks, ampersands) intact.

Result

Everything runs in your browser. Your text is not uploaded for processing and never leaves this device.

Frequently asked questions

What is the difference between component and full URL mode?

Component mode (encodeURIComponent) escapes everything that is not a letter, digit, or a few safe marks, which is what a single query value needs. Full URL mode (encodeURI) keeps the URL structure intact: slashes, colons, question marks, and ampersands stay as they are.

Which characters get encoded?

In component mode, spaces become %20, and characters like &, =, ?, #, and / are percent-encoded too. Accented letters and emoji are encoded as their UTF-8 bytes, one %XX triplet per byte.

Why did my decode fail?

The text contains a malformed percent escape, such as %zz or a % at the very end with nothing after it. Fix the escape and the decode runs.