Power your website with Hostinger — Get 20% OFF

Claim Discount →
⚙️ Developer Tools

URL Encoder / Decoder

Encode and decode URLs instantly. Supports encodeURIComponent (component encoding) and encodeURI (full URL encoding). Live conversion with copy button.

URL Encoding Explained

URLs can only contain a limited set of ASCII characters. Any other characters — like spaces, accented letters, or special symbols — must be "percent-encoded" (e.g., a space becomes %20, an equals sign becomes %3D). This ensures the URL can be safely transmitted over the internet.

There are two encoding functions in JavaScript:

FAQ

What is %20 vs + in URLs?

Both represent a space. %20 is the percent-encoded form (used in paths). The plus sign + is used to represent spaces in query strings (form submission format). Most servers accept both, but %20 is more universally correct.

hostinger

Need Hosting?

Get 20% OFF on Hostinger hosting — exclusive for CodLeads users

Get Discount