Encode & decode online
Choose one of 7 encodings. Text you have already typed comes along when you switch.
All 7 encodings
Every encoding has its own page with the tool, an example and the key facts.
Encodings7 encodings
Your text in every encoding
All 7 encodings for one input. Shown for Grüße & hello world; type in the tool above to use your text.
| Encoding | Result | Size |
|---|---|---|
| base64 | R3LDvMOfZSAmIGhlbGxvIHdvcmxk | +33 % |
| bin2hex | 4772c3bcc39f6520262068656c6c6f20776f726c64 | +100 % |
| htmlentities | Grüße & hello world | +62 % |
| punycode | Grüße & hello world | +0 % |
| quoted-printable | Gr=C3=BC=C3=9Fe & hello world | +38 % |
| urlencode | Gr%C3%BC%C3%9Fe%20%26%20hello%20world | +76 % |
| uuencode | 51W+#O,.?92`F(&AE;&QO('=O<FQD
`
| +52 % |
| base64url | R3LDvMOfZSAmIGhlbGxvIHdvcmxk |
Which encoding should I use?
Base64 is the standard for files, images and keys inside text. About a third larger.
base64url: Base64 with - and _ instead of + and /, no padding.
URL encoding, one parameter value at a time. %20 for spaces in paths, + only in form data.
HTML entities, or just htmlspecialchars with UTF-8. Your template engine probably does it already.
Punycode (xn--) for DNS, certificates and anything that only takes ASCII host names.
Hex: two digits per byte, easy to read and compare. The usual form for hashes and keys.
Quoted-printable keeps mostly-ASCII text readable. Mail libraries choose it for you.
None of these. Encoding hides nothing; use encryption with a key, or a password hash for passwords.
Encoding, hashing or encryption?
Changes the format so data survives URLs, HTML or e-mail. Anyone can reverse it, no key involved. Base64, URL encoding, hex.
A one-way fingerprint of fixed length. It can't be turned back; you compare it. SHA-256, MD5 and more.
Keeps data secret. Only someone with the key gets it back. AES and other ciphers.
Paste it into Identify. For broken umlauts like ü use Fix garbled text.