URL Encoder & Decoder
Free online URL encoder and decoder. Encode special characters for URLs or decode percent-encoded strings instantly.
URL Encoding Reference
encodeURI vs encodeURIComponent
encodeURIComponent: Encodes all special characters including /, ?, &, =, #. Use for encoding URL parameter values.
encodeURI: Preserves URL structure characters (/, ?, &, =, #, :). Use for encoding entire URLs while keeping them valid.
Related URL Tools
How to Use
- Select 'Encode' to URL-encode text, or 'Decode' to decode percent-encoded strings
- Paste your text or URL into the input box
- Click the 'Encode' or 'Decode' button
- Copy the result from the output box
- Use the 'Swap' button to use the output as new input
Example
Input
Hello World! How are you?
Output
Hello%20World%21%20How%20are%20you%3F
FAQ
What is URL encoding?
URL encoding (also called percent-encoding) converts special characters to a format that can be safely transmitted in URLs. For example, a space becomes %20 and & becomes %26.
When should I URL encode?
URL encode when passing special characters in query parameters, form data, or any URL that contains spaces, ampersands, equals signs, or non-ASCII characters.
What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes more characters (including /, ?, &, =) and is used for encoding URL parameters. encodeURI is used for encoding entire URLs while preserving the structure.
Is my data secure?
Yes, all processing happens directly in your browser. Your data is never sent to any server.