URL Encoder / Decoder
Percent-encode text and URLs with encodeURI, encodeURIComponent or form data.
Works offlineIDLE
Method
For one part of a URL (a query value or path segment): escapes every reserved character.
Example: hello world! → hello%20world%21
Original URL / text
0 chars|0 bytesEncoded result
Processing happens entirely in your browser.
Common URL encodings
| Character | Encoded | Character | Encoded |
|---|---|---|---|
| ␠ | %20 | ! | %21 |
| " | %22 | # | %23 |
| $ | %24 | % | %25 |
| & | %26 | ' | %27 |
| ( | %28 | ) | %29 |
| * | %2A | + | %2B |
| , | %2C | / | %2F |
| : | %3A | ; | %3B |
| = | %3D | ? | %3F |
| @ | %40 | [ | %5B |
| ] | %5D | س | %D8%B3 |
URL encoding info
URLs may only contain a limited set of ASCII characters. Everything else — spaces, Persian letters, emoji, and reserved characters used as data — is written as % followed by the hex value of each UTF-8 byte.
encodeURI— For a whole URL: keeps : / ? & = # intact and escapes spaces and non-ASCII characters.encodeURIComponent— For one part of a URL (a query value or path segment): escapes every reserved character.Form data— application/x-www-form-urlencoded, as HTML forms send it: like a component, but spaces become +.
Related security tools
Secure SendSend a password or private note through a link that self-destructs after it is read.Base64 Encode / DecodeEncode and decode text or files as Base64, including URL-safe Base64.JWT DecoderInspect a JSON Web Token: header, claims, expiry and signature.Password GeneratorStrong random passwords and passphrases from your browser’s secure RNG.
URL Encoder & Decoder
Percent-encode a URL or its query parameters, or decode them back to readable text. Non-Latin characters and special symbols are converted correctly, and everything happens in your browser.