Encode text to URL-safe format or decode percent-encoded URLs. Fast, accurate, and mobile-friendly.
URL encoding converts characters into a format that can be transmitted over the Internet. URLs can only be sent over the Internet using the ASCII character-set.
URL encoding replaces unsafe characters with a "%" followed by two hexadecimal digits (percent-encoding).
URL decoding is the reverse process, converting encoded characters back to their original form.
One click to encode or decode.
Great for testing queries and redirects.
Optimized for phones and desktops.
encodeURIComponent encodes all characters except letters, digits, - _ . ! ~ * ' ( ). encodeURI leaves URL syntax characters unencoded (:/?#[]@).
Encoding query parameters, form data, redirect URLs, and special characters like spaces, & and ?.
Decoding is safe for inspection. Avoid injecting decoded data into HTML without escaping.
Both appear in practice. %20 is the standard percent-encoding; + is common in form-urlencoded bodies.