- Result
- SGVsbG8sIEZpbmZsbyE=
About this result
Base64 is an encoding, not encryption. Processing stays in this browser. Legacy text conversions require a lossless round trip; arbitrary binary data belongs in the file tool.
ASCII and ISO-8859-1 use their strict byte meanings. GBK includes GB2312-compatible characters; ISO-8859-8-I shares the Hebrew byte map with logical text ordering.
Loading local file tools…
How it works

Encoding usually makes data larger
Standard padded Base64 turns 1,000 input bytes into 1,336 characters before any surrounding markup. Use the byte count, not the visible text length, when estimating encoded size; non-ASCII text can occupy several bytes per character.
Why can one extra byte add four Base64 characters?

| Input bytes | Calculation | Padded output length |
|---|---|---|
| A 3 | 4 × ⌈3 ÷ 3⌉ | 4 |
| B 4 | 4 × ⌈4 ÷ 3⌉ | 8 |
Base64 represents bytes as text
Base64 maps binary data into a text alphabet so it can pass through text-oriented systems. It does not encrypt the content. The basic text mode first encodes text as UTF-8 bytes, then applies standard Base64; decoding reverses those steps.
Use the file tool for arbitrary binary files. A valid Base64 byte sequence does not have to represent valid UTF-8 text, so a text decoder can reject data that a file decoder could preserve.
Worked example: character count is not always byte count
The text Hi contains two UTF-8 bytes and encodes as SGk=. The character é uses two UTF-8 bytes and encodes as w6k=. These inputs have different character counts but the same byte count, so their padded Base64 output has the same length.
| Text | UTF-8 byte count | Base64 |
|---|---|---|
| H | 1 | SA== |
| Hi | 2 | SGk= |
| Hi! | 3 | SGkh |
| é | 2 | w6k= |
Understand padding and approximate size overhead
Standard padded Base64 output has length 4 × ceil(byte count/3). One remaining byte uses two = padding characters, two remaining bytes use one, and a complete three-byte group needs none. Padding is not part of the decoded data.
For large files, Base64 adds roughly one third to the byte representation before any separate compression or transport overhead. It is not a file-compression method.
Choose the same character encoding on both sides
The selected-character-encoding mode supports explicit codecs and byte-order-mark handling. A codec changes how characters become bytes before Base64 is applied. Decoding bytes with a different codec can give different text or fail a strict round trip.
ASCII cannot represent every Unicode character. A byte-order mark is also a sequence of bytes and can change the Base64 result. Select the BOM option deliberately rather than treating differing output as random.
Check alphabet, whitespace and data type when decoding fails
The text tool uses the standard Base64 alphabet and its validation rules. Base64url replaces some alphabet characters and may omit padding, so do not assume every URL token can be pasted unchanged. The selected-codec mode offers an explicit whitespace policy.
Text and file processing occur locally in the browser. Nevertheless, an encoded secret remains a secret: anyone with its Base64 representation can decode it without a password. Use an appropriate encryption mechanism when confidentiality is required.
Base64 text: formula and assumptions
Convert UTF-8 bytes to or from the RFC 4648 Base64 alphabet.
Text is processed locally. Encoding is not encryption; do not treat encoded data as secret.
Base64 with a selected text encoding: formula and assumptions
Text → selected codec bytes → standard padded Base64, or the reverse.
Uses a strict lossless text round trip. ASCII and Latin-1 retain their actual byte definitions. Arbitrary binary files use the separate file tool; encoding is not encryption.
Worked example
Using the Base64 text example:
- Operation
- Encode
- Text
- Hello, Finflo!
Convert UTF-8 bytes to or from the RFC 4648 Base64 alphabet.
Example result
Result: SGVsbG8sIEZpbmZsbyE=
- Base64 is an encoding, not encryption. Processing stays in this browser. Legacy text conversions require a lossless round trip; arbitrary binary data belongs in the file tool.
- ASCII and ISO-8859-1 use their strict byte meanings. GBK includes GB2312-compatible characters; ISO-8859-8-I shares the Hebrew byte map with logical text ordering.
These are illustrative inputs. Change the values to explore a different scenario.
Formula references
References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.
Common questions
Is Base64 encryption?
No. It is a reversible representation of bytes and provides no secrecy on its own.
Why does é not encode as a single byte in UTF-8?
UTF-8 uses multiple bytes for many characters. Base64 encodes those bytes rather than counting visible characters.
What are the = characters for?
They pad the final standard Base64 group to the required length. They do not add decoded bytes.
Why can valid Base64 fail to decode as text?
Its bytes may not be valid in the selected character encoding. Use the file tool for arbitrary binary data.
Does this accept every Base64url token?
The standard text method expects its supported standard alphabet and padding. A URL-safe variant may require normalization appropriate to its format.
Will changing the character encoding change the result?
It can. Different codecs can represent the same text with different bytes, which produce different Base64 strings.
See our methodology and editorial policy.
