WebPiki

URL Encoder/Decoder

Encode and decode URL strings

Overview

Encode special characters and non-ASCII text in URLs to percent-encoding (%xx), or decode encoded strings back to readable text. Useful when building API query parameters or inspecting encoded URLs in a human-readable form.

Key Features

  • URL encoding (encodeURIComponent method)
  • URL decoding (decodeURIComponent method)
  • Full support for non-ASCII characters and special characters
  • One-click copy
  • Real-time conversion

How to Use

  1. Paste the text to encode or the URL string to decode into the input field.
  2. Select Encode or Decode.
  3. The result appears instantly. Copy it to clipboard with the copy button.

Tips

  • Spaces are encoded as %20 or + in URLs. The convention is + in query parameters and %20 in paths.
  • encodeURI() is for whole URLs; encodeURIComponent() is for parameter values. This tool uses encodeURIComponent.
  • Encoding an already-encoded string causes double encoding (%25xx), so be careful.

FAQ

What is the difference between encodeURI and encodeURIComponent?
encodeURI() encodes a full URL but preserves structural characters like :, /, and ?. encodeURIComponent() encodes all special characters, making it suitable for query parameter values.
Why do Korean characters in URLs look garbled?
Korean characters are converted to sequences like %EA%B0%80 when percent-encoded. This is not corruption -- it is the normal UTF-8 byte representation in hexadecimal.
Is URL encoding a form of encryption?
No. URL encoding is simply a transformation rule for safely transmitting special characters in URLs. Anyone can decode it, so it cannot be used for security purposes.