URL encoder and decoder
Paste text to percent-encode it, or an encoded string to read it back. Choose whether you are encoding one value or a whole URL — the difference decides whether the slashes and question marks survive, and it is the thing most tools get wrong for you.
Common questions
What is URL encoding?
Also called percent-encoding. A URL may only carry a limited set of ASCII characters, so everything else is written as a percent sign followed by the hex of each UTF-8 byte it takes. A space becomes %20 and é becomes %C3%A9.
Should I encode the whole URL or just one value?
One value, nearly always. Encoding a value escapes the slashes, ampersands and question marks inside it, which is what stops an & in someone's search term starting a new parameter. Encoding a whole URL leaves those alone so the link still works — right when the URL itself contains a space, wrong for anything going inside a query string.
Why is a space sometimes + and sometimes %20?
Because HTML forms use a different convention from the rest of a URL. In application/x-www-form-urlencoded, which is what a submitted form produces, a space is written + and a literal plus is %2B. Anywhere else in a URL a + is simply a plus. The checkbox switches between the two.
Why do ! ' ( ) and * come back unescaped?
Because the browser's own encodeURIComponent, which this page uses, predates RFC 3986 and leaves those five alone. They are safe in practice inside a query string. A few protocols — OAuth 1.0 signatures in particular — require them escaped, and those need a stricter encoder than any browser ships.
Other tools
- Weight Converter kg, lb, oz, g, stone and tonnes
- Height Converter cm, m, feet and inches
- Temperature Converter Celsius, Fahrenheit and kelvin
- Speed Converter km/h, mph, m/s, ft/s and knots
- Volume Converter Litres, millilitres, gallons, pints and cups
- Area Converter m², sq ft, acres, hectares and sq miles
- Time Converter Milliseconds, seconds, minutes, hours and days
- Data Storage Converter Bytes, KB, MB, GB, TB and KiB, MiB, GiB, TiB
- Percentage Calculator Percent of, percent change, increase and decrease
- Age Calculator Years, months, days and your next birthday
- Word Counter Words, characters, sentences and reading time
- Case Converter UPPER, lower, Title, camelCase and snake_case
- Base64 Encoder Encode and decode base64, Unicode included
- Typing Speed Test Words per minute, accuracy and your best
- BMI Calculator Body mass index, body fat and daily energy
- Lorem Ipsum Generator Placeholder text by paragraph, sentence, word or character
- UUID Generator Random version 4 UUIDs, up to 100 at once
- Hash Generator SHA-256, SHA-1, SHA-384 and SHA-512 at once
- Password Generator Strong random passwords, generated locally
- Decibel Meter Live sound level from your microphone, in dB