URL Encode/Decode

Encode or decode URL components — convert special characters to percent-encoded format

Input

Loading editor...

Output

Loading editor...

Related Tools

Frequently Asked Questions

URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hex digits. For example, a space becomes %20 and an ampersand becomes %26. This ensures special characters don't break URL parsing.

Characters that have special meaning in URLs must be encoded: spaces, &, =, ?, #, /, @, and non-ASCII characters. Letters, digits, and - _ . ~ are safe and don't need encoding.

Paste the parameter value (not the entire URL) and click Encode. For example, if your search query is 'hello world & more', encoding produces 'hello%20world%20%26%20more', which is safe to use in a URL query string.

encodeURI encodes a full URL but preserves URL-structural characters like :, /, ?, #, &. encodeURIComponent encodes everything except letters, digits, and - _ . ~ — use it for individual parameter values.