Have to deal with Base64 format? Then this site is made for you! Use our super handy online tool to decode or encode your data.

Base64 Encoding of "pols"

Simply enter your data then push the encode button.To encode binaries (like images, documents, etc.) use the file upload form a bit further down on this page.Destination character set.Destination newline separator.Encode each line separately (useful for multiple entries).Split lines into 76 character wide chunks (useful for MIME).Perform URL safe encoding (uses Base64URL format).Encodes in real-time when you type or paste (supports only UTF-8 character set).Encodes your data into the textarea below.

Encode files into Base64 format

Select a file to upload and process, then you can download the encoded result.

0Click (or tap) here to select a file

Maximum file size is 192MB.Destination character set for text files.Newline separator for encode each line separately and split lines into chunks.Encode each line separately (useful for multiple entries).Split lines into 76 character wide chunks (useful for MIME).Perform URL safe encoding (uses Base64URL format).

Working...Please wait until the encoding process completes.

Success!CLICK OR TAP HERE to download the encoded file.Please note that this file is removed from our system right after the first download attempt or 15 minutes of inactivity.

Error!Something went wrong:{{ error }}

About

Meet Base64 Decode and Encode, a simple online tool that does exactly what it says; decodes Base64 encoding and encodes into it quickly and easily. Base64 encode your data in a hassle-free way, or decode it into human-readable format.

Base64 encoding schemes are commonly used when there is a need to encode binary data that needs be stored and transferred over media that are designed to deal with textual data. This is to ensure that the data remains intact without modification during transport. Base64 is used commonly in a number of applications including email via MIME, and storing complex data in XML or JSON.

Advanced options

Character set: Our website uses UTF-8 character set, your input data is transmitted in that format. Change this option if you want to convert it into another one before encoding. Note that in case of textual data the encoding scheme does not contain their character set, so you may have to specify the selected one during the decoding process. As for files a binary option is the default, which will omit any conversion; this is required for everything except plain text documents.

Newline separator: Unix and Windows systems uses different line break characters, prior encoding either variants will be replaced within your data to the selected option. At the files section this is partially irrelevant since they contain intended versions, but you can define which one to use for the encode each line separately and split lines into chunks functions.

Encode each line separately: Even newline characters are converted to their base64 encoded forms. Use this option if you want to encode multiple independent data entries separated with line breaks. (*)

Split lines into chunks: The encoded data will be a continuous text without any whitespaces, check this option if you want to break it up into multiple lines. The applied character limit is defined in the MIME (RFC 2045) specification, which states that the encoded lines must be no more than 76 characters long. (*)

Perform URL safe encoding: Using standard Base64 in URLs requires encoding of "+", "/" and "=" characters into their percent-encoded form, which makes the string unnecessarily longer. Enable this option to encode into an URL and file name friendly Base64 variant (RFC 4648 / Base64URL) where the "+" and "/" characters are respectively replaced by "-" and "_", as well as the padding "=" signs are omitted.

Live mode: When you turn on this option the entered data is encoded immediately with your browser's built-in JavaScript functions - without sending any information to our servers. Currently this mode supports only the UTF-8 character set.

(*) These options cannot be enabled simultaneously, since the resulting output would not be valid for the majority of applications.

Safe and secure

All communications with our servers are made through secure SSL encrypted connections (https). Uploaded files are deleted from our servers immediately after being processed, and the resulting downloadable file is deleted right after the first download attempt, or 15 minutes of inactivity. We do not keep or inspect the contents of the entered data or uploaded files in any way. Read our privacy policy below for more details.

Completely free

Our tool is free to use. From now you don't have to download any software for such tasks.

Details of the Base64 encoding

Base64 is a generic term for a number of similar encoding schemes that encode binary data by treating it numerically and translating it into a base 64 representation. The Base64 term originates from a specific MIME content transfer encoding.

Design

The particular choice of characters to make up the 64 characters required for base varies between implementations. The general rule is to choose a set of 64 characters that is both part of a subset common to most encodings, and also printable. This combination leaves the data unlikely to be modified in transit through systems, such as email, which were traditionally not 8-bit clean. For example, MIME's Base64 implementation uses A-Z, a-z, and 0-9 for the first 62 values, "+" and "/" for the last two. Other variations, usually derived from Base64, share this property but differ in the symbols chosen for the last two values; an example is the URL and file name safe (RFC 4648 / Base64URL) variant, which uses "-" and "_".

Example

A quote snippet from Thomas Hobbes's Leviathan:

"Man is distinguished, not only by his reason, but ..."

represented as an ASCII byte sequence is encoded in MIME's Base64 scheme as follows:

In the above quote the encoded value of Man is TWFu. Encoded in ASCII, M, a, n are stored as the bytes 77, 97, 110, which are 01001101, 01100001, 01101110 in base 2. These three bytes are joined together in a 24 bit buffer producing 010011010110000101101110. Packs of 6 bits (6 bits have a maximum of 64 different binary values) are converted into 4 numbers (24 = 4 * 6 bits) which are then converted to their corresponding values in Base64.