๐Ÿ”— URL Encoder / Decoder

Encode special characters for use in URLs, or decode percent-encoded strings back to readable text. Instant, browser-only.

Output will appear here

What is URL encoding?

URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a safe format. For example, a space becomes %20, and an ampersand becomes %26. This is essential when building query strings or passing data in URLs.

encodeURIComponent vs encodeURI

encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ). Use this for individual query parameter values. encodeURI preserves characters that are valid in a full URL like / ? & = #. Use this when encoding a complete URL.