Encode & decode online

Choose one of 7 encodings. Text you have already typed comes along when you switch.

Runs in your browser

All 7 encodings

Every encoding has its own page with the tool, an example and the key facts.

All at once

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.

EncodingResultSize
base64R3LDvMOfZSAmIGhlbGxvIHdvcmxk+33 %
bin2hex4772c3bcc39f6520262068656c6c6f20776f726c64+100 %
htmlentitiesGrüße & hello world+62 %
punycodeGrüße & hello world+0 %
quoted-printableGr=C3=BC=C3=9Fe & hello world+38 %
urlencodeGr%C3%BC%C3%9Fe%20%26%20hello%20world+76 %
uuencode51W+#O,.?92`F(&AE;&QO('=O<FQD ` +52 %
base64urlR3LDvMOfZSAmIGhlbGxvIHdvcmxk
Which one?

Which encoding should I use?

Binary data in JSON, XML or e-mailbase64

Base64 is the standard for files, images and keys inside text. About a third larger.

Data in a URL, JWT or file namebase64url

base64url: Base64 with - and _ instead of + and /, no padding.

A value in a query string or pathurlencode

URL encoding, one parameter value at a time. %20 for spaces in paths, + only in form data.

User input on a web pagehtmlentities

HTML entities, or just htmlspecialchars with UTF-8. Your template engine probably does it already.

A domain with umlauts or accentspunycode

Punycode (xn--) for DNS, certificates and anything that only takes ASCII host names.

Show or compare raw bytesbin2hex

Hex: two digits per byte, easy to read and compare. The usual form for hashes and keys.

Readable text in an e-mailquoted-printable

Quoted-printable keeps mostly-ASCII text readable. Mail libraries choose it for you.

Keep something secretaes-256-cbc

None of these. Encoding hides nothing; use encryption with a key, or a password hash for passwords.

Good to know

Encoding, hashing or encryption?

Encoding

Changes the format so data survives URLs, HTML or e-mail. Anyone can reverse it, no key involved. Base64, URL encoding, hex.

Hashing

A one-way fingerprint of fixed length. It can't be turned back; you compare it. SHA-256, MD5 and more.

Encryption

Keeps data secret. Only someone with the key gets it back. AES and other ciphers.

Not sure what you have?

Paste it into Identify. For broken umlauts like ü use Fix garbled text.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.