All tools / Developer and web / URL encoder
URL encoder
Encode or decode text for use in URLs.
Loading interactive tool…
Open the full tool for saved settings, clipboard access, or more space.
About this tool
Make text safe to put in a web address by replacing spaces and special characters with percent codes, or turn an encoded string back into readable text. Handy for query strings, redirects and API calls.
How to use it
- Paste the text or encoded URL part into the box.
- Click Encode or Decode.
- Copy the output.
Questions
- Which characters get encoded?
- Everything except letters, digits and a few safe symbols. A space becomes %20 and an ampersand becomes %26.
- Why does decoding fail?
- A stray percent sign that is not followed by two hex digits is not valid. Fix or remove it and try again.