URL Encoder & Decoder
Encode or decode URLs and query parameters in real time. Supports both encodeURI and encodeURIComponent.
Quick Reference: Common Encodings
What is URL Encoding?
URL encoding (also called percent-encoding) converts characters into a format that can be transmitted over the Internet. Special characters are replaced with a percent sign followed by their hex value (e.g., a space becomes %20).
encodeURI vs encodeURIComponent
encodeURI encodes a full URI but preserves characters that have special meaning in a URL (like :, /, ?, &, =, #).
encodeURIComponent encodes everything, including those reserved characters. Use it when encoding a single query parameter value.
When to Use Each
- Use encodeURI for encoding a complete URL while keeping its structure intact.
- Use encodeURIComponent for encoding individual query parameter keys or values.
Recommended Products
AdAffiliate Disclosure: As an Amazon Associate, ToolBird earns from qualifying purchases. Links above are affiliate links — if you buy through them, we may earn a small commission at no extra cost to you.
Disclaimer: This tool is provided as-is for informational and educational purposes only.