URL Encoder/Decoder
URL encoding/decoding tool. Encode text data to URL format or decode URL-encoded data to text. You can process data up to 5120 characters.
Data to encode
Result
Read Only
How to use
About this tool
Encodes and decodes URL percent-encoding in the browser.
How to use
Switch encode/decode, enter or paste a string; the result updates in real time.
Options
Direction: Switch between Encode (string→percent-encoded) and Decode (percent-encoded→string).
Use cases
• Building query strings • Encoding Japanese in URLs • Decoding encoded URLs • Safe API parameters
Code Examples
JavaScript
Read Only
1encodeURIComponent("hello 世界"); // "hello%20%E4%B8%96%E7%95%8C"
2decodeURIComponent("hello%20world"); // "hello world"Python
Read Only
1from urllib.parse import quote, unquote
2
3quote("hello 世界")
4unquote("hello%20world")PHP
Read Only
1rawurlencode("hello 世界");
2rawurldecode("hello%20world");Privacy and data
Processing is in-browser; input is not sent to a server.
