Darmowy koder i dekoder adresów URL online
Encode or decode URLs and URI components instantly.
About URL Encoding
URL encoding (also called percent-encoding) converts characters that are not allowed in a URL into a format that can be safely transmitted. Special characters are replaced with a percent sign (%) followed by two hexadecimal digits representing the character's byte value.
encodeURI vs encodeURIComponent
- encodeURIComponent · Encodes almost all special characters. Use this when encoding a query parameter or path segment.
- encodeURI · Leaves structural URI characters intact (: / ? # @ & = etc.). Use this when encoding a complete URL where you want to preserve its structure.
Characters That Get Encoded
Spaces become %20, ampersands become %26, equals signs become %3D, and non-ASCII characters like accented letters or emoji are encoded to their UTF-8 byte sequences. Letters, digits, and the characters - _ . ~ are never encoded (unreserved characters).
Frequently Asked Questions
When should I URL-encode text?
You should URL-encode text whenever you include user input in a URL · for example, search queries in a query string, file names in a path, or data in API request parameters. Without encoding, special characters can break the URL structure or introduce security vulnerabilities.
What is double encoding and how do I avoid it?
Double encoding happens when already-encoded text gets encoded again, turning %20 into %2520. This usually occurs when code encodes a string that was already encoded. Always decode first if you're unsure whether text is already encoded, then encode once.
Is this tool safe for sensitive URLs?
Yes. This tool runs entirely in your browser using JavaScript's built-in encoding functions. No data is sent to any server. You can verify this by disconnecting from the internet · the tool will still work.