URL Encoder and Decoder
URL-encode or decode percent-encoded strings.
Result
The result will appear here.
How to use it
- Choose Encode or Decode.
- Type or paste your text or encoded string.
- Copy the result.
About this tool
This tool percent-encodes text so it is safe inside a URL, or decodes a percent-encoded string back to readable text. It uses the browser encodeURIComponent and decodeURIComponent, which escape characters like spaces, slashes, and question marks. Decoding rejects malformed input, such as a lone percent sign, with a clear error.
Examples
Input
blue shoes (encode)Output
blue%20shoesInput
a%2Fb (decode)Output
a/bCommon uses
- Encode a query string value
- Decode a URL to read it
- Escape text for a link parameter
- Inspect a percent-encoded string
FAQ
Is my input uploaded?
No. Encoding and decoding run in your browser. Nothing is sent anywhere.
What does it encode?
It uses encodeURIComponent, which escapes spaces and reserved characters so a value is safe inside a URL.
What if decoding fails?
Malformed input, like a stray percent sign, shows a clear error instead of returning broken text.
Related tools
Developer
JSON Formatter
Format, validate, beautify, and minify JSON.
Open toolDeveloper
Base64 Encoder and Decoder
Encode text to Base64 or decode it back.
Open toolDeveloper
Password Generator
Generate strong random passwords with length and character options.
Open toolDeveloper
UUID Generator
Generate v4 UUIDs in bulk.
Open toolDeveloper
HTML Encoder and Decoder
Encode or decode HTML entities.
Open toolEmbed this tool
Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.