Skip to content

URL Encoder/Decoder

Encode and decode URLs for safe transmission

Frequently asked questions

When should I use URL encoding?

Encode special characters when passing data in URLs, especially: spaces, &, =, ?, #, and non-ASCII characters. Always encode user input in query parameters to prevent errors and security issues.

What's the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL, preserving :, /, ?, #, etc. encodeURIComponent encodes everything except letters, digits, - _ . ! ~ * ' ( ), suitable for encoding individual parameter values.

Why do I see %20 instead of spaces?

URLs cannot contain spaces. %20 is the percent-encoded representation of a space. Some systems use + for spaces in query strings, but %20 is more universally compatible.