Base64 Encoding
Convert text or files to Base64 format
Loading...
Free online Base64 encoding and decoding tool, supports text, image, file encoding conversion. Provides Base64 encoding, decoding, validation functions with file upload and instant preview.
Convert text or files to Base64 format
Convert Base64 format back to original content
Check if content is valid Base64 format
Support image, document file upload conversion
Instant preview of Base64 image content
Display size and ratio before/after encoding
One-click copy results or download files
Full support for Chinese and multilingual characters
Please enter content and select operation mode
Select operation type, then click process button
Processing...
Please wait...
Enter text or upload file, select operation type to execute
選擇編碼、解碼或驗證操作,並設定格式類型
查看處理結果、統計資訊,並可複製或下載
不是。Base64 是一種編碼方式,目的是把二進位資料轉成可顯示的文字格式,任何人都可以解碼,沒有保密功能。需要加密請使用 AES 等加密演算法。
會。Base64 編碼後資料量約增加 33%,因為每 3 bytes 原始資料會被編碼為 4 個字元。
常見用途包含:在 JSON/XML 中傳遞圖片、在 HTML 中嵌入小圖示(Data URL)、在 HTTP Header 中傳遞二進位資料、電子郵件附件的 MIME 編碼等。
標準 Base64 使用 + 和 / 字元,在 URL 中有特殊意義。URL Safe Base64 改用 - 和 _ 取代,可安全放在網址中。