DesiToolkit
Utilities

URL Encoder & Decoder

Encode or decode URLs and query strings. Handles special characters, spaces, and Unicode.

Advertisement

Ad • 320×50

Common Encoded Characters

Space

%20

#

%23

&

%26

=

%3D

/

%2F

?

%3F

+

%2B

@

%40

:

%3A

,

%2C

"

%22

'

%27

Advertisement

Ad • 300×250
About this tool

How to use URL Encoder & Decoder

  1. 1Select Encode or Decode mode
  2. 2For encoding, choose between encodeURIComponent (encodes everything) and encodeURI (preserves URL structure)
  3. 3Paste your URL or text — the result appears instantly
  4. 4Click Copy to copy the result, or Swap to use it as new input

Frequently Asked Questions

What is URL encoding?

URL encoding (percent encoding) replaces special characters with a % followed by their hex value. For example, a space becomes %20. It ensures URLs are transmitted correctly over the internet.

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes everything including /, ?, &, = (use for encoding individual query parameters). encodeURI preserves URL-structural characters and is used to encode a full URL.

Why are some URLs encoded with + instead of %20?

In query strings (after ?), spaces are sometimes encoded as + (application/x-www-form-urlencoded format). The decoder handles both. In paths, %20 is standard.

Related Tools