URL Encoder
Encode and decode URLs and query strings.
How URL Encoder Works
What is URL Encoding?
URL encoding (also called percent-encoding) replaces unsafe or reserved characters in URLs with a % sign followed by their hexadecimal value. For example, a space becomes %20 and & becomes %26.
This ensures that URLs are transmitted correctly, since many characters have special meaning in the URL syntax (like ?, &, =, and /).
How to Use
- Paste a URL or text into the input field.
- Click Encode to percent-encode the input, or Decode to convert encoded strings back to readable text.
- Choose the encoding mode: Component for query parameter values, Query String for full query strings, or Full URL for encoding an entire URL.
- The output updates live as you type.
Encoding Modes
| Component | Encodes everything except A-Z a-z 0-9 - _ . ~ ! * ' ( ). Use for individual parameter values. |
| Query String | Like Component but also preserves = and & so key=value pairs stay intact. |
| Full URL | Preserves the URL structure (://, /, ?, #) and only encodes unsafe characters within each part. |
Important Notes
- Spaces can be encoded as
%20(standard) or+(form data). This tool uses%20for Component and Full URL modes. - Double-encoding occurs when already-encoded text is encoded again (
%20becomes%2520). Decode first if unsure. - UTF-8 characters (like emoji or accented letters) are encoded as multi-byte sequences.
Privacy & Security: All encoding and decoding runs entirely in your browser. No data is sent to any server.
Mode
Encoding