URL Encode & DecodeNEW

Encode and decode URLs, whole strings or single components

Completely free

Checking your access…

The AllFreeTool URL Encoder and Decoder converts text or web addresses in the browser using four methods: encodeURIComponent, encodeURI, escape (which produces %uXXXX), and standard form encoding. You can choose the hex letter case, whether a space becomes %20 or +, whether newlines are escaped, and which extra characters to keep.

The decoder is strict: a malformed sequence such as %ZZ is reported with its position, a plus sign can be treated as a space, and up to three layers of nested encoding such as %2525 are peeled back to a plain percent sign. Use encodeURIComponent for parameter values and encodeURI for whole URLs; nothing is uploaded and there is no usage limit.

Why use URL Encode & Decode on AllFreeTool?

🔤

Four Methods

encodeURIComponent, encodeURI, escape with %uXXXX, and form encoding all in one page.

⚙️

Fine Control

Set the hex letter case, pick %20 or + for spaces, and control which characters stay literal.

🧪

Strict Decoding

A bad sequence such as %ZZ is reported with its exact position instead of being silently ignored.

🔒

Local Processing

Encoding and decoding happen in your browser, so the text never leaves your device.

How to use URL Encode & Decode

1

Paste text or a URL

Enter the value to encode, or paste an encoded string into the decode box.

2

Choose the method

Pick the encoding function and the options such as hex case and space handling.

3

Encode or decode

Click the button and copy the result; errors show the position of the bad character.

Common questions

When should I use encodeURIComponent rather than encodeURI?+

encodeURIComponent escapes a value so it can sit inside a single query parameter and is the safe default there, because it also escapes & and =. encodeURI escapes a whole URL but leaves : / ? # & and other structural characters alone, so using it on a parameter value can break the URL.

Why is the decoded result sometimes one character short?+

Two bytes that each decode to a partial character combine into one Chinese character or emoji, so the character count looks smaller than the byte count. That is normal UTF-8 behaviour, not a decoding error.

What does %2525 decode to?+

Nested encoding is supported up to three layers, so %2525 is decoded to %25 and then to %, matching what a browser address bar shows after one or more encode passes.

Does uploading my text to the server happen?+

No. Encoding and decoding run entirely in your browser, the text is never sent anywhere, and there is no usage limit or registration requirement.

More Crypto tools