Q726780
Sign in to saveAlso known as base64 encoding
Base64 is a binary-to-text encoding that uses 64 printable characters to represent each 6-bit segment of a sequence of byte values. As for all binary-to-text encodings, Base64 encoding enables transmitting binary data on a communication channel that only supports text.
Wikidata facts
- Image
- Base64bin2txt.png
Show 1 more fact
- Stack Exchange tag
- stackoverflow.com/tags/base64
Sources (1)
via Wikidata · CC0
~24 min read
Article
20 sectionsContents
- Applications
- Alphabet
- Examples
- Encoding when no padding needed
- Encoding with one padding character
- Encoding with two padding characters
- Decoding with padding
- Decoding without padding
- Variants
- RFC 4648
- RFC 3548
- MIME
- Privacy-enhanced mail
- UTF-7
- OpenPGP
- Javascript (DOM Web API)
- With atypical alphabet order
- With atypical alphabet
- See also
- References
Base64 is a binary-to-text encoding that uses 64 printable characters to represent each 6-bit segment of a sequence of byte values. As for all binary-to-text encodings, Base64 encoding enables transmitting binary data on a communication channel that only supports text.
When comparing the original data to the resulting encoded data, Base64 encoding increases the size by 33% plus about 4% additional if inserting line breaks for typical line length.