About This Tool

What is URL Encoder / Decoder?

A tool for encoding and decoding URL strings. URL encoding is essential when web addresses contain special characters, spaces, or non-ASCII characters like CJK text. It ensures safe transmission of query parameters in web requests.

How to Use

  1. Enter the string you want to encode or decode in the input area.
  2. Click 'Encode' to convert special characters to percent-encoding (%XX).
  3. Click 'Decode' to restore encoded strings to their original characters.
  4. Copy the result for use in your project.

Key Features

  • Standard URL encoding based on encodeURIComponent
  • Full support for non-ASCII characters including CJK
  • Bidirectional encode/decode conversion
  • Real-time result display

Tips

  • Special characters like &, =, ?, and # must be encoded in URLs to work as intended.
  • Spaces are converted to %20 or + during URL encoding.
  • Always encode user input in query parameters when making API calls.

URL Encoder / Decoder

Encode or decode URL strings


Frequently Asked Questions

What is the difference between encodeURI() and encodeURIComponent()?

encodeURI() encodes a full URI but preserves special characters like :, /, ?, and #. encodeURIComponent() encodes everything including those characters, making it suitable for encoding individual query parameter values.

Why do spaces sometimes appear as %20 and sometimes as +?

%20 is the standard percent-encoding for spaces in URLs. The + sign is used only in application/x-www-form-urlencoded format (HTML form submissions). Both represent a space, but %20 is more universally correct in URLs.

Do I need to encode non-English characters like Korean or Japanese in URLs?

Yes. Non-ASCII characters must be URL-encoded for safe transmission. Modern browsers display decoded characters in the address bar for readability, but the actual HTTP request uses the encoded form.


Related Tools