URL Encode/Decode
Safely encode/decode URLs and edit queries
Usage
Input a string and select encode/decode and scope to see the result.
Example: encode https://example.com/?q=日本語
→ https://example.com/?q=%E6%97%A5%E6%9C%AC%E8%AA%9E
FAQ
encodeURI vs encodeURIComponent?
encodeURI
targets whole URLs; encodeURIComponent
targets parts (e.g., query values). Use the scope toggle.
Avoid double‑encoding
Re‑encoding already percent‑encoded text changes it. Check the current state before encoding.
Space: + or %20?
This tool follows standard JS encoding to %20
. The +
convention is different (e.g., application/x-www-form-urlencoded).
Newlines and non‑ASCII?
Newlines become %0A
, and non‑ASCII (e.g., Japanese) is UTF‑8 percent‑encoded.