URL Encoder / Decoder
Make text safe for URLs and query strings, or turn %20-style encoded links back into readable text.
Input & mode
Limits
- Text is encoded as UTF-8, the web standard; legacy encodings such as Shift_JIS or Windows-1252 percent-escapes are not supported.
- Decoding malformed sequences (such as a lone % or invalid UTF-8) reports an error instead of guessing.
- Each line is processed separately when “Each line separately” is ticked; otherwise the whole input is one value.
Result
Query parameters (decoded)
| Name | Value |
|---|
How to use URL Encode / Decode
- Paste text or a URLEnter the text to encode, or an encoded URL to decode.
- Choose the modeEncode or decode, as a URL component or a full URL, with optional + for spaces.
- CopyCopy the result. For full URLs, the query parameters are listed in a table.
Component vs full-URL encoding
Component encoding (encodeURIComponent) escapes every character that has a meaning in URLs, including / ? & = and #. Use it for a single query value or path segment.
Full-URL encoding (encodeURI) keeps the URL structure characters and only escapes spaces, non-ASCII characters and other unsafe characters. Form encoding uses + for spaces, as HTML forms do.
Frequently asked questions
Should a space be %20 or +?
%20 is correct everywhere in a URL. + means space only in query strings sent by HTML forms (application/x-www-form-urlencoded).
Is my text sent anywhere?
No. Everything runs in your browser tab with JavaScript. Nothing you type or paste is uploaded, logged or stored.
Why are Chinese or emoji characters turned into many %XX codes?
They are first encoded as UTF-8 bytes (3 or 4 bytes each), and each byte becomes one %XX.
What is double encoding?
Encoding an already encoded string turns % into %25, so %20 becomes %2520. Decode once to undo one level.
Related tools
All toolsBase64 Encoder & Decoder
Encode or decode UTF-8 text, URL-safe Base64, and local files.
JSON Formatter & Validator
Format, minify, sort keys, and catch syntax errors cleanly.
Hash Generator
MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files.
Case Converter
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more.