Base64 converter

Other tools

Spin the wheel{$ ',' | translate $} Timer{$ ',' | translate $} Unit converter{$ ',' | translate $} Coin flipper{$ ',' | translate $} Random number generator{$ ',' | translate $} Dice roller{$ ',' | translate $} BMI calculator{$ ',' | translate $} Calorie calculator{$ ',' | translate $} BMR calculator{$ ',' | translate $} Body fat calculator{$ ',' | translate $} TDEE calculator{$ ',' | translate $} Tabata timer{$ ',' | translate $} Percentage calculator{$ ',' | translate $} QR code generator{$ ',' | translate $} Password generator{$ ',' | translate $} Reaction time test{$ ',' | translate $} Typing speed test{$ ',' | translate $} CPS test{$ ',' | translate $} Word counter{$ ',' | translate $} Case converter{$ ',' | translate $} Text compare{$ ',' | translate $} Mortgage calculator{$ ',' | translate $} Loan calculator{$ ',' | translate $} Auto loan calculator{$ ',' | translate $} VAT calculator{$ ',' | translate $} Compound interest calculator{$ ',' | translate $} Salary calculator{$ ',' | translate $} Virtual piano{$ ',' | translate $} Background noise generator{$ ',' | translate $} Metronome{$ ',' | translate $} Discount calculator{$ ',' | translate $} Current week number{$ ',' | translate $} Tip calculator{$ ',' | translate $} Time calculator{$ ',' | translate $} Date calculator{$ ',' | translate $} Age calculator{$ ',' | translate $} Currency converter{$ ',' | translate $} Sleep calculator{$ ',' | translate $} Moon phases{$ ',' | translate $} Color palette generator{$ ',' | translate $} Color picker{$ ',' | translate $} Color scheme generator{$ ',' | translate $} Ring size calculator{$ ',' | translate $} Clothing size calculator{$ ',' | translate $} Shoe size calculator{$ ',' | translate $} Bra size calculator{$ ',' | translate $} Ovulation calculator{$ ',' | translate $} Due date calculator{$ ',' | translate $} Zodiac signs{$ ',' | translate $} IQ test{$ ',' | translate $} Emoji{$ ',' | translate $} Stopwatch{$ ',' | translate $} Countdown{$ ',' | translate $} Alarm clock{$ ',' | translate $} Subnet calculator{$ ',' | translate $} Internet speed test{$ ',' | translate $} IP address{$ ',' | translate $} UUID generator{$ ',' | translate $} MD5 hash generator{$ ',' | translate $} Markdown editor{$ ',' | translate $} Lorem Ipsum generator{$ ',' | translate $} Pomodoro timer

Base64 decoder & encoder

Base64 decoder & encoder

Base64 is a positional number system with a base of 64 printable ASCII (American Standard Code for Information Interchange) characters. The system is used, for example, to present binary files in e-mail. All Base64 variants use the characters A-Z, a-z and 0-9, 62 characters in total, the missing two characters are replaced by different characters in implementation systems. Every three original bytes are encoded with four characters.

History of Base64

At first, only text could be sent via email (RFC 822). Over time, along with the text, it was necessary to transfer audio, video and graphic files, applications, etc. There was a need to convert a binary file to text. Base64 was added to the then existing UUE encoding (Uuencode), which is used in the MIME (Multipurpose Internet Mail Extensions) specification (RFC 2045-2049).

MIME is a standard for describing headers in electronic messages. Its use allows you to send several attachments in one letter, for example, archived and text files or HTML pages. A MIME-aware email program freely extracts the archive from a text file, displays the message, and parses the HTML tags. For example, Outlook Express automatically runs scripts embedded in an HTML page.

Base64 was born in the era of seven-, six-, and three-bit bytes. Old encodings did not support the eight-bit standard, because of this, part of the information was lost when transferred from the old system to the new one. Often, when sending letters, the mail server dropped an extra, eighth, bit or did not transmit video and images. To eliminate such troubles, encodings for converting binary code to text were developed. The most popular and effective system is Base64, due to its simplicity it is used everywhere.

An algorithm called "encoding for printing" was first described in 1987, Base64 appeared in June 1992. The versions of this system are Base16, Base32, Base36, Base58, Base85, Base91 and Base122. Later standards are actively used in the IT field.

Interesting fact

Some systems use Base58 to encode URLs, which differs from Base64 by the absence of characters in the final text that can be ambiguously perceived by a person. 0 (zero), O (capital Latin o), I (capital Latin i), l (small Latin L) are excluded. Also excluded are the + (plus) and / (slash) characters, which, when encoding a URL, can lead to incorrect interpretation of the address.

Base64 provides reversible and recoverable encoding. The service translates the characters of the eight-bit code table into characters that are preserved during the transfer of information in networks and between devices.

Base64 decode & encode

Base64 decode & encode

Base64 is based on reducing three 8 bits to four 6 bits and representing them as ASCII characters. The only drawback of the resulting reversible encryption is the size, which increases in a ratio of 4:3 during encoding.

Base64 in web applications

Base64 is the ability to include binary files in HTML. The document without separate images and additions contains graphic, audio and video elements, thus replacing DOC, DOCX, PDF files.

Some applications encode binary data to make it easier to include in a URL. In the case of Base64, using a URL encoder can be inconvenient because the characters "/" and "+" are converted to hexadecimal sequences. This process is reversible, but recovery complicates further parsing of the string. Also, the "%" character in some cases has to be re-escaped when passing a string through other systems.

Special Base64 for URLs omits the '=' sign and replaces the '+' and '/' characters with '*' and '-'. At the same time, encoding does not change the length of the value, the form is saved after encoding and can be used in relational databases, web forms and identifiers. Base64 standard variant of URLs replaces "+" and "/" with "-" and "_" (RFC 3548 Section 4).

One of the Base64 variants for regular expressions contains "!" and "-" instead of "*" and "-", instead of "+" and "*". These characters can be reserved for regular expressions. In this context, [ ] may not work.

There are also variants with "_"/"-" or "."/"_" to use a Base64 string along with identifiers for programs, or "."/"-" for XML name tokens (Nmtoken), or " _"/":" in more limited XML identifiers (Name). In addition, Base58 is used for the URL without the "+" and "/" characters.

Base64 is suitable for encoding JPEG and PNG images for insertion into FB2 eBooks.

Base64 encoding allows you to send small images via long SMS.

Base64 is very widely used. So, in Mozilla Thunderbird and Mozilla Application Suite, the Base64 system helps to hide passwords in POP3. Base64 can hide cryptographic key management information, although such use is not recommended due to insecurity.

Non-Base64 spam scanners often miss promotional messages and other junk information because they treat emails as random. This is used by spammers to bypass basic anti-spam tools.