.B64

B64 File

Base64 MIME Encoded File
Ask a question
QUICK ANSWER

A .b64 file is a binary file (image, archive, document, or anything else) encoded as plain ASCII text using Base64. To get the original file back, decode it: on Windows run "certutil -decode input.b64 output.bin" in Command Prompt; on Linux or macOS run "base64 -d input.b64 > output.bin". WinZip and IZArc can also open .b64 files directly. The extension does not tell you what is inside.

Developer: N/A (Base64 encoding per RFC 1421/2045; .b64 extension convention, no single author) Category: Encoded Files Open standard MIME: text/plain
OPENS ON Windows macOS Linux Web
Related: .CRYPT · .SDOC · .AXX · .REM

On this page

19k+ extensions indexed
Last reviewed Jul 19, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the B64 file format?

.B64 is a plain-text file containing Base64-encoded binary data - a method of representing arbitrary binary content as printable ASCII characters for safe transmission over text-only channels such as email, HTTP headers, or JSON payloads.

Base64 encoding maps every 3 bytes of binary input to 4 characters from a 64-character alphabet (A-Z, a-z, 0-9, +, /), padded with = to make the output length a multiple of four. Following the MIME convention (RFC 2045), lines are wrapped at 76 characters. This encoding increases file size by approximately 33% - a 1 MB binary file becomes roughly 1.37 MB as Base64.

A .b64 file is not compressed and not encrypted - it is simply a different representation of the same binary data. To recover the original file, decode the Base64 content back to binary using base64 -d (Linux/macOS), certutil -decode (Windows), or an online decoder.

Common uses include embedding binary attachments in .eml email files, encoding images or fonts as data: URIs in HTML/CSS, and passing binary data through JSON or XML APIs. The encoding is specified in RFC 4648 (2006); the .b64 extension is an informal convention with no single governing authority.

Security & safety

RISK: MEDIUM

Base64 encoding is transparent - the inner file is instantly recoverable by anyone. A .b64 file could encode any payload including malware executables. Do not decode .b64 files from unknown sources without scanning the decoded output first. After decoding, run the result through antivirus before opening. Encoding a file as Base64 does NOT make it safe.

Format details

in a nutshell
FULL NAMEBase64 MIME Encoded Fileaka Base64 encoded archive, MIME base64 file
DEVELOPERN/A (Base64 encoding per RFC 1421/2045; .b64 extension convention, no single author)since MIME RFC 2045 (1996); Base64 as a concept dates to Privacy-Enhanced Mail (RFC 1421, 1993); .b64 extension informal convention
MIME TYPEtext/plain
TYPEplain-text ASCII encoding of binary data (Base64 encoding, MIME style)
STANDARDOpen · royalty-free

Programs that open B64 files

Windows5 apps
WinZip Freemium Open the .b64 file in WinZip; it auto-detects MIME Base64 encoding and decodes the inner file. Works if the .b64 contains an archive.
ALZip Freemium ALZip supports MIME Base64 encoded archives (.b64) - open directly to extract inner content.
IZArc Free Open the .b64 file in IZArc; it supports UUencoded/Base64/BinHex MIME files and extracts the inner content.
Total Commander Freemium Total Commander can decode MIME/Base64 encoded files via the built-in UUdecode/MIME tools (File menu).
certutil (built-in) Built-in Run 'certutil -decode input.b64 output.bin' in Command Prompt to decode the Base64 file to its original binary. Then open the decoded file with the appropriate program.
macOS2 apps
StuffIt Deluxe Paid StuffIt Deluxe can decode MIME/Base64 encoded files. Note: Smith Micro deprecated StuffIt for Mac; availability may be limited.
base64 (Terminal, built-in) Built-in Run 'base64 -d input.b64 > output.bin' to decode. Then open output.bin with the appropriate app.
Linux1 app
base64 (coreutils, built-in) Open-source Run 'base64 -d input.b64 > output.bin' to decode. Or 'base64 --decode input.b64 | file -' to identify the inner file type.
Web1 app
Base64 Decode online tools Free Paste the Base64 text or upload the .b64 file; downloads the decoded binary. Suitable for small files; avoid uploading sensitive content.

Technical details

deep spec
Encoding algorithmBase64 per RFC 4648 (canonical); RFC 2045 MIME variant; RFC 1421 PEM variant
Character alphabetA-Z, a-z, 0-9, +, /; padding character: =
Input-to-output ratioEvery 3 bytes of binary → 4 Base64 characters (~33% size increase)
Line wrapping76 characters per line (MIME / RFC 2045); 64 characters per line (PEM / RFC 1421)
File encodingPlain ASCII text (7-bit clean; safe for all text-only transport channels)
CompressionNone - Base64 encoding increases file size; the wrapped payload may itself be compressed
EncryptionNone - encoding only; content is trivially reversible and provides no confidentiality
Padding= or == appended so output length is a multiple of 4 characters
Size overheadA 1 MB binary file encodes to approximately 1.37 MB of Base64 text
Optional header markersContent-Transfer-Encoding: base64 (MIME); -----BEGIN / END <TYPE>----- (PEM / RFC 1421)
Common use casesMIME email attachments, data: URIs in HTML/CSS, binary in JSON/XML payloads, PGP/GPG ASCII armor
Decoding toolsbase64 -d (Linux/macOS), certutil -decode (Windows), [Convert]::FromBase64String() (PowerShell)
ReleasedMIME RFC 2045 (1996); Base64 as a concept dates to Privacy-Enhanced Mail (RFC 1421, 1993); .b64 extension informal convention
Latest versionRFC 4648 (2006) - canonical Base64 spec; no versioned file format
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

B64 conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with B64 files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about B64 files.

Frequently asked questions

How do I decode a .b64 file on Windows?
Run 'certutil -decode input.b64 output.bin' in Command Prompt. Then identify what the decoded file is (magic bytes or file extension inside) and open it with the right program.
What type of file is inside a .b64?
Anything - a .b64 is an encoding wrapper, not a format itself. Decode it first, then inspect the magic bytes or header of the resulting file to identify its type.
Is Base64 the same as compression?
No. Base64 INCREASES file size by ~33%. It is an encoding to make binary data safe for text channels, not a compression method. The inner payload might itself be compressed (e.g. a .zip), but Base64 alone adds no compression.
Can I open a .b64 directly in WinZip?
Yes - WinZip (and IZArc, ALZip) auto-detect MIME/Base64 encoding and decode the inner file without a separate step.
Why is my decoded file unrecognised?
The decoded file might need renaming - its extension is whatever was encoded, not necessarily .bin. Use 'file' (Linux/macOS) or a hex editor to identify the true format from its magic bytes.

References

1RFC 4648 - The Base16, Base32, and Base64 Data Encodingswww.rfc-editor.org
2RFC 2045 - MIME Part One (Base64 in email)www.rfc-editor.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.SWFSmall Web Format (Shockwave Flash)
10.PRO6XProPresenter 6 Bundle File

Related extensions

.CRYPTWhatsApp Encrypted Message Database Backup
.SDOCOracle IRM Sealed Word Document
.AXXAxCrypt Encrypted File
.REMBlackBerry Encrypted Media Card File
.DLCDownload Link Container
.SECPGP Secret Key Ring File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z