Base64 Encoder / Decoder
Encode plain text, UTF-8 strings, and binary files to Base64, or decode Base64 strings and Data URIs back to text or downloadable files. 100% client-side, private, and ultra-fast.
Input Text / Data
Converted Output
Status
Error details...
Conversion Metrics
Next Steps
Base64 Binary-to-Text Transformation Pipeline
A high-performance, zero-knowledge encoding and decoding pipeline engineered to translate 8-bit octet byte streams, Unicode text strings, and multimedia assets into RFC 4648 printable ASCII radix-64 representations.
Zero-Knowledge Browser Sandboxing
The FreeJSONtoCSV Base64 Encoder / Decoder executes bitwise transformations, UTF-8 byte stream operations, and binary magic-number sniffing directly inside an isolated in-memory WebWorker sandbox. Your API keys, cryptographic tokens, internal files, and sensitive credentials are never transmitted over the network or stored on any server.
Deterministic 4:3 byte ratio for all binary-to-ASCII transmissions.
Full support for Standard (+, /) and URL-Safe (-, _) alphabets.
Safe multi-byte UTF-8 encoding preventing Latin-1 btoa crash errors.
Asynchronous chunked ArrayBuffer processing for large files.
Base64 Execution Pipeline & Bit Mechanics
4-Stage WebWorkerByte Stream Tokenization
Ingests UTF-8 strings or raw binary ArrayBuffers, validating multi-byte code point boundaries in-memory.
Bitwise 24-to-4 Sextets
Concatenates 3 8-bit octets into 24-bit streams and chunks them into 4 6-bit sextet indexes (0–63).
RFC 4648 / URL-Safe Map
Substitutes sextet indices with target alphabet characters and appends trailing = padding.
Data URI & Binary Export
Emits clean Base64, Data URIs, HTML tags, or sniffs binary magic bytes for direct file download.
Real-World Manifest Transformations
Interactive GallerySee how plain text, international unicode, URL tokens, and binary assets translate into Base64 formats.
1. Multi-Byte UTF-8 Strings & Emojis
text.txt ➔ encoded.b64PreviewHide
1. Multi-Byte UTF-8 Strings & Emojis
text.txt ➔ encoded.b64Multi-byte UTF-8 characters and international accents correctly encoded without browser btoa Latin-1 exceptions.
Hello, World! 🌍🚀
International: ä, ö, ü, ñ, 日本語
Client-Side Safe: 100% PrivateSGVsbG8sIFdvcmxkISDwn5qA8J+agA==
SW50ZXJuYXRpb25hbDogw6QsIMO2LCDDvCwgw7EsIOaXpeacrOiqng==
Q2xpZW50LVNpZGUgU2FmZTogMTAwJSBQcml2YXRl2. URL-Safe Tokens & JWT Signatures (RFC 4648 §5)
token.json ➔ url_safe.b64PreviewHide
2. URL-Safe Tokens & JWT Signatures (RFC 4648 §5)
token.json ➔ url_safe.b64Replacing characters 62 and 63 (+ and /) with hyphen (-) and underscore (_) for safe URL query strings.
{
"sub": "usr_9821",
"iss": "freejsontocsv.com",
"scope": "read:data write:export"
}eyJzdWIiOiJ1c3JfOTgyMSIsImlzcyI6ImZyZWVqc29udG9jc3YuY29tIiwic2NvcGUiOiJyZWFkOmRhdGEgd3JpdGU6ZXhwb3J0In03. Image & SVG Inline Data URI Embedding
icon.svg ➔ data:image/svg+xml;base64,...PreviewHide
3. Image & SVG Inline Data URI Embedding
icon.svg ➔ data:image/svg+xml;base64,...Inline base64 Data URIs eliminate additional HTTP roundtrips for web badges, email templates, and CSS stylesheets.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
<circle cx="12" cy="12" r="10" fill="#10b981"/>
</svg><img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiMxMGI5ODEiLz48L3N2Zz4=" alt="Base64 Icon" />Base64 Alphabet & Structural Mapping Matrix
RFC 4648 & RFC 2045 Standard| Specification | Alphabet Set | Padding Rule | Standard Use Case |
|---|---|---|---|
| Standard (RFC 4648) | A-Z, a-z, 0-9, +, / | = or == | General binary-to-text transmission, Data URIs, API JSON payloads. |
| URL-Safe (RFC 4648 §5) | A-Z, a-z, 0-9, -, _ | Omitted / Optional | JWT tokens, OAuth2 redirect tokens, URL query string parameters. |
| MIME (RFC 2045) | Standard (76 chars/line) | Mandatory = | SMTP electronic mail body and file attachments (RFC 2045). |
| PEM / TLS Keys (RFC 7468) | Standard (64 chars/line) | Mandatory = | X.509 certificates, OpenSSH private/public keys, RSA blocks. |
Enterprise Best Practices & Specifications
RFC 4648 & W3C StandardUTF-8 Multi-Byte Safety
Native browser window.btoa() throws an InvalidCharacterError on Unicode characters exceeding code point 0xFF. Our converter uses TextEncoder and TextDecoder for flawless multi-byte international text support.
URL-Safe Query Encoding
Standard Base64 contains + and / which require URL percent-encoding in HTTP GET requests. RFC 4648 §5 substitutes - and _, ensuring zero character corruption in URLs or JWT headers.
Isolated WebWorker Performance
All bitwise transformation loops, string concatenation routines, and byte-packing algorithms execute inside an asynchronous WebWorker thread. The main UI thread never locks, maintaining a responsive 60fps frame rate even with 100MB inputs.
In-Memory Decoded Binary Sniffing
When decoding raw Base64 strings, our engine inspects binary magic bytes to identify PNG, JPEG, WebP, GIF, SVG, and PDF files. Decoded images are rendered immediately in an in-memory preview with a one-click binary file download.
Cross-Language Implementation Recipes
Production Ready// UTF-8 Encode
const b64 = Buffer.from("Hello 🌍", "utf-8").toString("base64");
// Decode back to UTF-8
const str = Buffer.from(b64, "base64").toString("utf-8");import base64
# Standard Encode
b64 = base64.b64encode("Hello 🌍".encode("utf-8")).decode("ascii")
# URL-Safe Encode
url_b64 = base64.urlsafe_b64encode(data).decode("ascii")import "encoding/base64"
// Standard Base64
enc := base64.StdEncoding.EncodeToString([]byte("payload"))
// URL-Safe without padding
urlEnc := base64.RawURLEncoding.EncodeToString(data)# Encode string (no trailing newline)
echo -n "secret-token" | base64
# Decode Base64 string
echo "c2VjcmV0LXRva2Vu" | base64 --decodeFrequently Asked Questions
Find instant, verified answers to common questions about data conversion, syntax formatting, encoding, and offline privacy.
Log / Base 64What is the value of log, base, 2, 64 (log₂ 64)?
The value of $log_2(64)$ is 6. In logarithm mathematics, $log_2(64) = x$ means $2^x = 64$. Since $2^6 = 2 imes 2 imes 2 imes 2 imes 2 imes 2 = 64$, the answer is exactly 6. In computer science and encoding, this mathematical relationship is fundamental: each Base64 character represents exactly 6 bits of binary data ($log_2(64) = 6$), allowing 4 Base64 characters to represent exactly 24 bits (3 bytes) of data.
Log / Base 64What is the value of log, base, 8, 64 (log₈ 64)?
The value of $log_8(64)$ is 2. By definition, $log_8(64) = x$ means $8^x = 64$. Since $8^2 = 8 imes 8 = 64$, the solution is 2. In positional notation systems, 64 in decimal equals $100$ in octal (base 8), where 2 is the highest exponent power ($1 imes 8^2 = 64$).
Log / Base 64What is Base 64?
Base64 is a binary-to-text encoding algorithm defined by RFC 4648 that represents binary data using an alphabet of 64 printable ASCII characters (A–Z, a–z, 0–9, +, and /). It enables binary payloads—such as images, PDF files, cryptographic signatures, and audio clips—to be safely transmitted inside text-based formats like JSON, XML, HTML Data URIs, and email (MIME) without character corruption or escaping issues. Try our online Base64 encoder and decoder to convert data instantly.
Log / Base 64What is Base 64 encoding?
Base64 encoding is the algorithmic process of taking groups of 3 binary bytes (24 bits total), dividing them into four 6-bit units, and translating each 6-bit value (ranging from 0 to 63) into a printable ASCII character according to the standard RFC 4648 index table. Because 3 bytes become 4 characters, Base64 encoding increases data size by approximately 33.3%. If input bytes are not evenly divisible by 3, trailing = padding characters are added.
Log / Base 64In which base is 64 written as 100?
64 is written as 100 in Base 8 (the Octal numeral system). In positional numeral systems, a three-digit number $100_b$ in base $b$ represents $1 imes b^2 + 0 imes b^1 + 0 imes b^0 = b^2$. Solving $b^2 = 64$ yields $b = 8$. Therefore, $64_{10} = 100_8$.
No matching questions found
We couldn't find any questions matching your query. Try searching for different keywords or reset your filters.