URL Encode / Decode
Encode text for safe use in a URL, or decode a percent-encoded URL string back to plain text.
About the URL Encode / Decode
Percent-encode text so it's safe to use inside a URL, or decode a percent-encoded URL string back to plain text.
How the URL Encode / Decode works
URLs can only contain a limited set of characters safely — spaces, &, ?, #, and many others have special meaning or aren't allowed at all. URL encoding replaces each unsafe character with a "%" followed by its hex code (a space becomes %20, for example) so the text can be passed as a query parameter or path segment without breaking the URL.
How to use the URL Encode / Decode
- Choose Encode or Decode.
- Paste or type your text.
- Press Convert to see the result.
Tips for the URL Encode / Decode
- Decoding an already-plain string is safe and simply returns it unchanged; decoding a malformed percent-encoded string will show an error instead of a wrong result.
Example: URL Encode / Decode
Encoding "hello world & more?" for use in a URL
- Mode: Encode
- Text: hello world & more?
Result: hello%20world%20%26%20more%3F
Each unsafe character is replaced with "%" plus its hex code: space → %20, "&" → %26, "?" → %3F.
Related calculators
- Base64 Encode / DecodeTools & MoreEncode text to Base64 or decode Base64 back to plain text, with full UTF-8 support
- Word & Character CounterTools & MoreCount words, characters, sentences, and paragraphs in your text, with an estimated reading time
- Password GeneratorTools & MoreGenerate strong, random passwords with customizable length and character sets, with an entropy-based strength estimate
- Color ConverterTools & MoreConvert colors between HEX, RGB, and HSL formats with a live preview swatch