URL ENCODER / DECODER
Percent-encode text or a URL, or decode it back. Nothing leaves your browser.
In short
Percent-encode text or a full URL, or decode it back to plain text. Choose component encoding for a single query value or full-URL encoding that preserves reserved characters. Runs entirely in your browser.
How to encode or decode a URL
- 1
Paste the text or URL you want to encode (or a percent-encoded string to decode).
- 2
Switch between Encode and Decode.
- 3
Choose Component to escape every reserved character, or Full URL to keep URL structure characters like / and : intact.
- 4
Copy the result.
Questions
- What's the difference between Component and Full URL encoding?
- Component encoding (encodeURIComponent) escapes every reserved character, including / ? & = — use it for a single query string value. Full URL encoding (encodeURI) leaves URL structure characters like :, /, ?, and & untouched, so it's meant for encoding an entire URL you already have.
- Why do spaces turn into %20?
- Percent-encoding represents any character outside the URL-safe set as %XX, where XX is its byte value in hex. A space is byte 0x20, so it becomes %20 (some encoders use + instead, but %20 is the standard percent-encoding form used here).
- Why does decoding sometimes fail?
- Decoding fails when the input contains a % that isn't followed by two valid hex digits, or an incomplete multi-byte UTF-8 sequence — that means the text wasn't valid percent-encoded data to begin with.
- Is my URL sent anywhere?
- No. Encoding and decoding both run locally in your browser using JavaScript's built-in encodeURIComponent/decodeURIComponent — nothing is transmitted.
Related tools
- Base64 EncoderEncode text to Base64 or decode it back, with correct UTF-8 handling.
- Hex ConverterConvert text to hexadecimal and back, both directions in one tool.
- Binary ConverterConvert text to binary and back, both directions in one tool.
- Base32 ConverterConvert text to Base32 and back using the RFC 4648 alphabet.
- Base58 ConverterConvert text to Base58 and back using the Bitcoin alphabet.
- HTML Encoder / DecoderEncode special characters to HTML entities (&, <, >, ") or decode them back to plain text. Updates as you type — nothing uploaded.
- Hash GeneratorGenerate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.
- JWT DecoderPaste a JWT, see the header, payload, and claims — and verify the signature.
Updated