Mã hóa/Giải mã Base64
Mã hóa văn bản hoặc file sang Base64 và giải mã chuỗi Base64 thành văn bản
Client-side only — uses native browser btoa / atob APIs. Your data never leaves the browser.
Base64 Encoder & Decoder
Encode any text or binary data to Base64, or decode a Base64 string back to plain text. Used in email attachments, data URIs, JWTs, and API authentication headers.
FAQ
What is Base64 encoding?
Base64 converts binary data into 64 printable ASCII characters, making it safe to transmit over text-only systems like email or URLs.
Is Base64 encryption?
No. Base64 is encoding, not encryption. It is easily reversible and provides zero security. Never use it to protect sensitive data.
Why does Base64 end with == ?
Base64 pads output with = characters to ensure the length is a multiple of 4 bytes. One = means one padding byte, == means two.
What is Base64 used for?
Embedding images in CSS/HTML as data URIs, encoding JWT header/payload, passing binary data in JSON, and HTTP Basic Auth headers.
Tiếp tục khám phá
Công cụ Công cụ Developer khác bạn có thể thích…
Định dạng JSON
Định dạng, kiểm tra và nén JSON với tô sáng cú pháp và phát hiện lỗi
Mã hóa/Giải mã URL
Mã hóa và giải mã thành phần URL và tham số query string
Tạo UUID
Tạo UUID ngẫu nhiên (v1, v4) hoặc tạo hàng loạt nhiều UUID cùng lúc
Tạo Hash
Tạo hash MD5, SHA-1, SHA-256, SHA-512 từ văn bản hoặc file
Kiểm tra Regex
Kiểm tra biểu thức chính quy với tô sáng khớp thời gian thực và trích xuất nhóm
Giải mã JWT
Giải mã và kiểm tra JSON Web Token — xem header, payload và xác minh chữ ký
Định dạng HTML
Định dạng và làm đẹp mã HTML với thụt lề đúng và tô sáng cú pháp
Nén CSS
Nén mã CSS để giảm kích thước file bằng cách xóa khoảng trắng và comment