URL Encoder / Decoder
Encode and decode URLs with percent-encoding. Nothing ever leaves your browser.
This tool runs entirely in your browser. No data is ever sent to any server.
URL Encoding FAQ
What is URL encoding?
URL encoding (percent-encoding) converts characters into a format that can be safely transmitted in a URL. Special characters like spaces, ampersands, and non-ASCII characters are replaced with a percent sign (%) followed by their hexadecimal value.
encodeURI vs encodeURIComponent?
encodeURI encodes a full URL but preserves characters that have special meaning in URLs (://?#[]@!$&'()*+,;=). encodeURIComponent encodes everything except letters, digits, and - _ . ~ making it safe for query parameter values.
When should I URL-encode?
URL-encode whenever you embed user input into URLs — especially query parameters, path segments, or form data. Common uses include API requests, building dynamic URLs, and encoding filenames in download links.
What about non-ASCII characters?
Non-ASCII characters (like é, ñ, 日本語) are first converted to UTF-8 bytes, then each byte is percent-encoded. For example, the space character becomes %20, and é becomes %C3%A9.
Sharing sensitive URLs or API keys?
Don't paste credentials into chat or email. Use CredenShare to deliver them with AES-256 encryption and automatic expiration.