Chuyển đến nội dung chính

Bộ mã hóa / giải mã Base64

Công cụ cho Nhà phát triển

Mã hóa và giải mã văn bản Base64

Xem nhanh kết quả

Base64 Encoder / Decoder: Encode and decode Base64 text. Base64 Encoder / Decoder uses standard developer formulas to compute accurate results instantly.

Nhập

Đầu ra

Byte đầu vào20
Ký tự đầu ra28
Giãn nở thể tích+40%
Biến thểStandard

Nguyên lý mã hóa (lấy 3 byte đầu vào làm ví dụ)

  1. 1First 3 byte(s) → binary: 11100100 10111000 10000000
  2. 2Split into 6-bit groups: 111001 | 001011 | 100010 | 000000
  3. 3Indices 57, 11, 34, 0 → chars "5LiA"
  4. 43 bytes → 4 chars, no padding needed

Bảng chỉ mục ký tự Base64

Chỉ mục0-2526-5152-616263Bù vị trí
Ký tựA-Za-z0-9+/=

💡 Base64 là mã hóa chứ không phải mã hóa mật khẩu, bất kỳ ai cũng có thể khôi phục, đừng dùng để ẩn thông tin nhạy cảm. Mỗi 3 byte mã hóa thành 4 ký tự (thể tích khoảng +33%); khi sử dụng trong URL hoặc tên tệp, vui lòng chọn biến thể URL Safe.

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  1. Paste or type content: drop code/text into the Base64 Encoder / Decoder or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

Điểm chính

  • Base64 Encoder / Decoder is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Encode and decode Base64 text.
  • Results come with formulas and reference tables so you can verify every number.

Công thức và nguyên lý hoạt động

Base64 Encoder / Decoder formula

Base64 Encoder / Decoder uses standard developer formulas to compute accurate results instantly.

Câu hỏi thường gặp

How do I use the Base64 Encoder / Decoder?
Open the page and fill in the input fields — results update automatically. Encode and decode Base64 text.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

Nguồn đáng tin cậy:

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Bộ mã hóa / giải mã Base64[EB/OL]. https://www.yijiansuan.com/vi/c/dev/base64

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.