URL encode and decode
Percent-encode text so it is safe in a web address, or decode %20-style text back to normal, as you type.
Your files stay on your device. Nothing is uploaded.
Step 1: Type or paste text
Step 2: Encode or decode
Step 3: Result
How to URL encode and decode
-
Paste text or a URL
Paste the text to encode, or the encoded text to decode.
-
Choose the direction
Encode a single value (a search term, a name) or a whole URL. For decoding, choose whether + means a space.
-
Copy the result
The result appears as you type.
About this tool
Value or whole URL?
Encoding a value turns / ? & = and spaces into codes, so the value cannot break the address. Encoding a whole URL keeps those characters, so the address still works and only spaces and special letters are encoded.
Every language
Letters such as é or Urdu text become their UTF-8 codes, for example é becomes %C3%A9, which is what browsers and servers expect.
Plus signs
Web forms send spaces as +. Decoding reads + as a space by default; turn that off for values where + is a real plus sign.
Privacy
This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.
Frequently asked questions
What does "broken escape" mean?
A % must be followed by two hexadecimal digits, as in %20. A lone % or %G1 cannot be decoded.
What is %20?
The code for a space. Each code is % followed by the character's byte value in hexadecimal.
Is my text uploaded?
No. It runs in your browser, so nothing you type is sent anywhere.
Can I encode Base64 too?
Yes, with Base64 encode and decode.
Related tools
- Base64 Base64 encode and decode Encode text to Base64 or decode Base64 to text.
- { JSON } JSON formatter Format, validate, minify and sort JSON.
- Replace Find and replace Replace words or patterns in text, with a count of changes.
- v4 · v7 UUID generator Make random UUIDs (version 4 or 7), up to 100 at once.
- Secure Password generator Make strong random passwords on your device.
- QR QR code generator Make a static QR code for a link, text, Wi-Fi, email or phone.
- Aa › AA Case converter Change text to upper, lower, title or sentence case.
- HTML › MD HTML to Markdown Turn HTML into clean Markdown as you type.