URL Encoder & Decoder
Encode text for safe use in URLs, or decode percent-encoded strings. Instant results.
Encode
Decode
Common Encodings
Space%20
&%26
=%3D
+%2B
?%3F
#%23
/%2F
@%40
Advertisement
Frequently Asked Questions
URL encoding (percent-encoding) converts characters that are not allowed in URLs into a % followed by two hex digits. For example, a space becomes %20. This ensures URLs are transmitted correctly over the internet.
Use encodeURIComponent for encoding individual parameters or values within a URL — it encodes everything including &, =, and /. Use encodeURI for encoding a full URL — it preserves characters that have meaning in URL structure.
In form data (application/x-www-form-urlencoded), a + encodes a space. In standard URL encoding, %20 is the correct encoding for space. Both are common, which can cause confusion.