Navigation

URL Encoder & Decoder

Encode or decode URLs and query parameters with percent-encoding. Three encoding modes available. 100% client-side — nothing leaves your browser.

Mode
Text to encode
0 chars

Paste or type the text, URL, or query parameter to encode.

Encoded output
0 chars

Result — click copy or select and copy manually.

Related tools
Common URL-encoded characters
CharacterEncodedCharacterEncodedCharacterEncoded
Space%20 or +!%21#%23
&%26=%3D?%3F
@%40/%2F:%3A
+%2B%%25"%22

Frequently Asked Questions

URL encoding replaces unsafe ASCII characters with a % followed by two hexadecimal digits representing the character's byte value. This ensures special characters are safely transmitted in URLs without being misinterpreted as URL delimiters. For example, a space becomes %20 and an ampersand becomes %26.

encodeURIComponent is recommended for most use cases — it encodes query parameter values, form data, and any text that needs to be embedded in a URL. Use encodeURI only when you have a complete URL and want to preserve the structure (protocol, slashes, etc.).

Proper URL encoding prevents injection attacks. Without encoding, an attacker could inject special characters into URLs to manipulate query parameters, perform cross-site scripting (XSS), or exploit path traversal vulnerabilities. Always encode user input before including it in URLs.