URL Encoder & Decoder
Percent-encode or decode URLs, query strings, and path segments. Choose between encodeURI and encodeURIComponent. Runs in your browser.
Runs 100% in your browser — nothing is uploaded.
Result
Frequently asked
What is the difference between encodeURI and encodeURIComponent?
encodeURI leaves URL syntax characters (: / ? # & = +) alone, so it is used to encode a whole URL. encodeURIComponent percent-encodes those too, so it is safe for query values, path segments, and form fields.
Which one should I use?
Use encodeURIComponent for anything you paste into a URL query, form field, or path segment. Use encodeURI only when you have an entire URL and just want to escape spaces or unicode.
Why did my decode fail with "Malformed URI sequence"?
The input contains a "%" not followed by two hex characters, which the JavaScript decoder cannot handle. Look for standalone % signs in your input.
Related tools
- Base64 Encode / DecodeEncode or decode Base64 text. UTF-8 safe by default. Optional URL-safe variant.
- SlugifyConvert titles into clean URL slugs. Handles Unicode, strips diacritics, and let
- Base32 Encoder / DecoderEncode any text to RFC 4648 Base32 (A-Z, 2-7) or decode Base32 back to text. UTF
- HTML EntitiesEncode and decode HTML entities: &, <, ©, and every numeric &#nn
- Morse Code TranslatorTranslate text to Morse code and back. Full alphabet, digits 0-9, and common pun
- Punycode / IDN ConverterConvert international domain names (IDN) with Unicode characters into Punycode (