Back to Tools

URL Encoder/Decoder

Encode and decode URLs and URI components for web development. Support for both encodeURI and encodeURIComponent methods with automatic detection.

URL Encoder/Decoder

Encode and decode URLs and URI components for web development and data transmission

Encodes full URLs, preserving URL structure

Input

Output

URL Encoding Methods

encodeURI()

Encodes complete URLs, preserving URL structure. Doesn't encode:: / ? # [ ] @

https://example.com/search?q=hello world
→ https://example.com/search?q=hello%20world

encodeURIComponent()

Encodes URL components, including reserved characters. Use for query parameters and form data.

user@example.com
→ user%40example.com

Common Use Cases

Query Parameters

Encode search terms and form data in URL parameters

API Requests

Properly format URLs for REST API calls and webhooks

Data Transmission

Safely transmit text data through URLs and forms

Email Links

Encode email addresses and subject lines in mailto links

Common URL Encodings

Reference table for frequently encoded characters

%20
!%21
#%23
$%24
%%25
&%26
+%2B
=%3D
?%3F
@%40
[%5B
]%5D