URL Encoder & Decoder

Encode or decode URLs and query string parameters using standard percent-encoding. Supports encodeURIComponent, encodeURI, and bulk processing — all 100% client-side.

Encoding mode

Bulk URL Encode/Decode

Process multiple URLs or strings at once — one per line. Each line is encoded or decoded independently.

What is URL encoding?

URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a format that can be safely transmitted. Special characters are replaced with a percent sign followed by two hexadecimal digits representing the character's byte value.

For example, a space becomes %20, an ampersand becomes %26, and non-ASCII characters like ñ become multi-byte sequences like %C3%B1. This ensures URLs work correctly across all browsers and servers.

When to use encodeURIComponent

  • Encoding individual query string parameters or values
  • Encoding data that will be part of a URL but is not a full URL itself
  • Encodes everything except: A-Z a-z 0-9 - _ . ! ~ * ' ( )

When to use encodeURI

  • Encoding a complete URL while preserving its structure
  • Keeps the URL scheme, slashes, colons, and query delimiters intact
  • Does NOT encode: : / ? # [ ] @ ! $ & ' ( ) * + , ; = -

FAQs

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but preserves structural characters like ://?#. encodeURIComponent encodes everything except a handful of unreserved characters, making it ideal for encoding individual query parameters.

Why do I need to URL-encode my data?

URLs can only contain a limited set of ASCII characters. Special characters, spaces, and non-ASCII letters must be percent-encoded so browsers and servers interpret them correctly.

Is this tool safe for sensitive data?

Yes. All encoding and decoding happens in your browser using JavaScript. No data is sent to any server.

Can I encode non-English characters?

Absolutely. The tool handles full UTF-8 encoding, so characters from any language (Chinese, Arabic, Cyrillic, etc.) are properly percent-encoded.

Related Tools