URL Encoder & Decoder

Encode or decode URLs and query parameters in real time. Supports both encodeURI and encodeURIComponent.

40.0Kuses
8.8/10(133)
0 charactersPlain text
0 charactersEncoded text

Quick Reference: Common Encodings

Space%20
!%21
#%23
$%24
&%26
+%2B
/%2F
:%3A
=%3D
?%3F

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

Ad

Affiliate 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.

ToolBird Assistant

Find the right tool instantly

Hey! I'm ToolBird Assistant. Tell me what you need and I'll find the right tool for you.