URL Encode/Decode

Encode and decode URLs with percent-encoding. Handle special characters, query parameters, and Unicode in URLs. Free online URL encoding tool.

Use URL Encode/Decode Now

Loading tool...

Features

Encode special characters to URL-safe percent-encoded format
Decode percent-encoded URLs back to readable text
Handle Unicode characters and international URLs
Encode/decode individual components or full URLs
Real-time conversion as you type

Common Use Cases

Frequently Asked Questions

What is URL encoding?

URL encoding (percent-encoding) replaces unsafe characters in URLs with a '%' followed by their hex value. For example, a space becomes %20. This ensures URLs are valid and can be transmitted correctly.

What characters need to be URL encoded?

Characters like spaces, &, =, ?, #, +, and non-ASCII characters must be encoded in URLs. Reserved characters have special meanings in URLs and need encoding when used as data.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but preserves valid URL characters like :, /, ?. encodeURIComponent encodes everything except letters, digits, and - _ . ~, making it suitable for encoding individual parameters.

Related Tools