URL encoder and decoder
Percent-encode or decode a URL component or whole URL, with optional plus-to-space decoding.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Convert text to or from URL percent encoding in your browser. Choose whether the text is one URL component or a whole URL, then copy the result or download it as result.txt. The tool does not visit the address or check that the URL is valid.
How to use this tool
- Paste the value or URL into Text. Under Options, choose Encode or Decode in Operation.
- Choose URL component for one value or path segment, or Whole URL to preserve URL separators. When decoding form-style values, enable Decode + as a space if the input uses plus signs for spaces.
- Select Convert URL encoding and review the separators, percent escapes and spaces. Use Copy result for the complete text or download result.txt. Run the conversion again after changing the input or options.
Supported inputs and limits
Paste up to 1 MiB of text, measured in UTF-8 bytes.
This tool accepts pasted text, with no file input.
Each run performs one conversion. Encoding text that already contains percent escapes encodes its % signs again. Decoding does not repeatedly unwrap nested escapes; check the original value before converting it again.
Worked example
Example input
a+b c/中文
Example options
{}Example output
a%2Bb%20c%2F%E4%B8%AD%E6%96%87
When something does not work
If decoding fails, check for incomplete percent escapes or escaped bytes that are not valid UTF-8. Recopy the original value rather than repeatedly decoding a partial result. Check the scope and plus-to-space option if conversion succeeds but the separators or spaces are unexpected. Editing the input marks the previous result as stale, and a failed run clears it. Save any result you need before refreshing or closing the tab.
Frequently asked questions
Which encoding scope should I choose?
Use URL component for an individual value, such as a query parameter's value. Encoding that value escapes separators such as & and / so they remain part of the value. Whole URL keeps separators such as :, /, ? and & in place when encoding. When decoding a whole URL, it also leaves encoded separators such as %2F escaped; use URL component when those characters should be decoded as part of a value.
How are plus signs and nested escapes handled?
Decoding keeps literal + signs unless you enable Decode + as a space. That option replaces the input's literal plus signs before percent decoding, so use it only when they represent spaces. Each run decodes once; nested percent escapes can remain in the result. Encoding writes spaces as %20, regardless of the decoding option.
Documentation & further reading
Related tools
Base64 encoder and decoder
Encode text or file bytes as Base64, or decode Base64 to UTF-8 text or a binary file.
HTML entity encoder and decoder
Encode special HTML characters, or decode named and numeric references as plain text.
Unicode escape converter
Convert text to Unicode escapes or decode supported JavaScript-style escapes into readable text.
SHA-256 checksum
Calculate a SHA-256 checksum for text or a file.