🔗 URL Encoder / Decoder

🔒 An toàn & Phía máy khách

Encode characters into percent-encoded form (e.g. space → %20) or decode them back. Use 'Component' for query values; use 'Full URL' to preserve reserved characters like : / ?.

How to use

  1. Paste your URL or text into the input panel.
  2. Pick Component mode for query values or path segments — this escapes reserved characters like :/?&=.
  3. Pick Full URL mode when encoding a complete URL — this preserves :/?&= so the URL stays valid.
  4. Click Encode or Decode; use Swap to flip input/output.

Component vs Full: use Component (encodeURIComponent) for anything that goes inside a URL piece — query values, path segments, fragment IDs. Use Full (encodeURI) only when escaping characters in an entire URL where you must keep ? and & as separators.

Examples

Component encoding (e.g., for a search query):

"hello world" → hello%20world
"a&b=c"       → a%26b%3Dc
"안녕"         → %EC%95%88%EB%85%95

Full-URL encoding:

"https://x.com/?q=hello world"
→ https://x.com/?q=hello%20world