URL Encode & Decode

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

Output

When to use URL encoding

URL encoding (percent encoding) replaces unsafe characters with % followed by their hex value. Use it when passing query parameters containing special characters like &, =, ?, #, or spaces.

This tool uses JavaScript's encodeURIComponent() and decodeURIComponent() — the standard functions for encoding URL components.