Tool
URL Encoder / Decoder
Encode text to percent-encoded URL format or decode a percent-encoded string back to plain text. Choose between query parameter and full URL encoding.
About URL Encoding
URLs can only contain a limited set of ASCII characters. Characters outside this set — spaces, accented letters, symbols like &, =, +, and non-Latin characters — must be percent-encoded before being included in a URL. Percent encoding replaces each unsafe character with a % followed by the two-digit hex code of the character's byte value.
A space becomes %20, an ampersand becomes %26, an equals sign becomes %3D. Non-ASCII characters like é are first encoded as UTF-8 bytes, then percent-encoded — so é becomes %C3%A9.
Query parameter mode (encodeURIComponent) encodes everything including &, =, ?, / and #. Use this for individual query string values. Full URL mode (encodeURI) preserves these characters since they have structural meaning in a URL.
Common use case: you're building a URL that includes a search query with spaces or special characters. Pass the value through encodeURIComponent first and include the result as the query parameter value. When your server receives the request, it will decode it back automatically. This is the correct way to pass user input in URLs safely.
Decoding is equally useful — when you receive a URL-encoded string and need to read the original value, paste it in and switch to decode mode. Common sources of encoded strings: query parameters from analytics tools, webhook payloads, API log entries, and form submissions.
More free developer tools: Base64 Encoder / Decoder · UUID Generator · Binary to Decimal