Online tool
URL encoder and decoder
Turn spaces and special characters into %20-style codes for web addresses, or decode them back to readable text.
Loading the tool…
- Choose encode or decode
- Paste your text
- Free
- No sign-up
- Runs on your device
More text and generator tools
- Password generatorCreate a strong, random password in one click. It is made on your device with the browser’s…
- Word counterPaste or type your text to count words, characters, sentences and paragraphs, and to estimate…
- Colour converterConvert a colour between HEX, RGB and HSL, copy the values, and check whether black or white…
- JSON formatterPaste JSON to make it readable, check that it is valid, or shrink it to one line. Errors show…
- QR code generatorCreate a QR code for a website, text, Wi-Fi login, e-mail or phone number and download it as PNG…
- Text case converterChange the case of any text with one click: capitals, small letters, title case, sentence case…
- Lorem ipsum generatorPlaceholder text for designs, mockups and templates: choose how many paragraphs and sentences,…
- Base64 encoder and decoderConvert text to Base64 and back. Works with accents, emoji and any language, and offers URL-safe…
About url encoder and decoder
Web addresses may only contain a limited set of characters. URL encoding (percent-encoding) replaces the others with a percent sign and two hex digits: a space becomes %20 and é becomes %C3%A9. This tool encodes and decodes in both directions.
Use the default mode to encode a single value, such as a search term in a query string. Tick Whole URL to keep the characters that give a URL its structure (: / ? & = #).
How to encode or decode a URL
- Choose encode or decodeAt the top.
- Paste your textThe result appears below.
Good to know
- Encode each query value separately and then join them with & and =.
Frequently asked questions
What is the difference between the two modes?
Component mode (the default) encodes everything except letters, digits and - _ . ! ~ * ( ). Whole-URL mode leaves : / ? & = # and similar characters alone.
Is my text sent to a server?
No. Everything is calculated in your browser, so your text stays on your device.