Base64

Mã hóa & Giải mã Base64

Cách đơn giản và nhanh nhất để mã hóa Base64 trực tuyến

Miễn phí, an toàn và chạy hoàn toàn trên trình duyệt.

// Input
"Hello, World!"
 
// Base64 Encoded
"SGVsbG8sIFdvcmxkIQ=="

Why Choose 2Base64?

Lightning Fast

All encoding and decoding happens instantly in your browser using JavaScript. No server round-trips.

🔒

100% Secure

Your data never leaves your device. Everything is processed locally in your browser.

💻

Developer Friendly

Clean, simple interface designed for developers. Supports UTF-8 text and provides instant results.

🎁

Completely Free

No registration, no limits, no hidden fees. Use our Base64 tools as much as you need.

Base64 là gì?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It converts binary data into a set of 64 printable characters (A-Z, a-z, 0-9, +, and /), with = used for padding.

Hoạt động như thế nào?

Base64 encoding works by taking groups of three bytes (24 bits) of binary data and splitting them into four groups of six bits each. Each 6-bit group is then mapped to one of 64 printable ASCII characters.

Tại sao dùng Base64?

Base64 encoding is essential in many areas of software development. It is used to embed images in HTML/CSS, transmit binary data over text-based protocols like email (MIME) and HTTP, store data in JSON/XML formats, and encode authentication credentials.

Common Uses of Base64

  • Embedding images in HTML/CSS using data URIs
  • Sending email attachments via MIME encoding
  • Encoding binary data in JSON and XML payloads
  • HTTP Basic Authentication credentials
  • Storing binary data in text-based databases
  • Data transfer between different systems and platforms