Tools / URL Encode/Decode

URL Encode/Decode.

Encode and decode URL components.

About URL Encoder/Decoder

URL encoding (percent-encoding) converts characters into a format that can be safely transmitted in URLs. Special characters like spaces, ampersands, and Unicode characters are replaced with percent-encoded equivalents (e.g., space becomes %20). This tool handles both encoding and decoding, making it essential for working with query strings, form data, and API parameters.

How to Use

  1. Enter the string you want to encode or decode.
  2. Click "Encode" to percent-encode special characters, or "Decode" to restore the original string.
  3. Copy the result.

Key Features

  • Full RFC 3986 percent-encoding
  • Decode percent-encoded strings
  • Handle Unicode characters correctly
  • Process query string parameters

Common Use Cases

  • Encoding query string parameters for APIs
  • Debugging URL-encoded form submissions
  • Preparing strings for use in URLs
  • Decoding percent-encoded URLs for readability

Frequently Asked Questions

What is URL encoding?

URL encoding replaces unsafe ASCII characters with a % followed by two hexadecimal digits. For example, a space becomes %20 and an ampersand becomes %26.

When should I URL-encode data?

URL-encode any data that will be included in a URL query string, path segment, or form submission — especially if it contains special characters like &, =, ?, or spaces.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URI but preserves characters like : / ? #. encodeURIComponent encodes everything except unreserved characters, suitable for individual query parameters.

Does this tool handle Unicode?

Yes. Unicode characters are first encoded as UTF-8 bytes, then each byte is percent-encoded.

Related Tools