URL Encoder / Decoder

Encode or decode URLs, query strings, and special characters. Runs in your browser — nothing sent anywhere.

Input

Output

Frequently Asked Questions

What's the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL, preserving characters like :/?&= that have meaning in URLs. encodeURIComponent encodes everything, including those characters — use it for query parameter values.

When should I URL-encode?

URL-encode data when embedding it in a URL query string, as a form-encoded POST body, or when passing special characters through a URL.

What is URL parsing?

URL parsing breaks a URL into its components: protocol, hostname, port, path, query parameters, and hash fragment.