Embedding small images in CSS
Convert a 2 KB icon to a Data URI to inline it in a stylesheet — saves an HTTP request. iKit produces the full data:image/png;base64,... string ready to paste.
เข้ารหัสข้อความหรือไฟล์เป็น Base64 หรือถอดรหัส Base64 กลับ รูปแบบ URL-safe, ปลอดภัย UTF-8, ฝั่งไคลเอ็นต์เท่านั้น
ไม่ การเข้ารหัสและถอดรหัสทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณโดยใช้ JavaScript API ในตัว (TextEncoder, btoa, atob) ไม่มีอะไรถูกอัปโหลด บันทึก หรือเก็บ
Base64 มาตรฐานใช้ + และ / ซึ่งมีความหมายพิเศษใน URL URL-safe Base64 (RFC 4648 §5) แทนที่ด้วย - และ _ ตามลำดับ ดังนั้นเอาต์พุตจึงปลอดภัยที่จะใช้ใน URL, ชื่อไฟล์ และโทเค็นเช่น JWT
วางไฟล์ที่นี่ หรือคลิกเพื่อเรียกดู
เข้ารหัส: ไฟล์ใดก็ได้ → สตริง Base64 ถอดรหัส: วาง.txt ที่มี Base64 เพื่อกู้คืนไฟล์ต้นฉบับ
รวดเร็ว แม่นยำ พร้อมทุกตัวเลือกที่คุณคาดหวัง
แปลงข้อความหรือไฟล์ใดๆ เป็น Base64 หรือถอดรหัส Base64 กลับเป็นข้อมูลต้นฉบับ ดูตัวอย่างทันทีขณะพิมพ์
การเข้ารหัสและถอดรหัสทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณ ข้อความและไฟล์ของคุณไม่เคยถูกอัปโหลดไปยังเซิร์ฟเวอร์ใดๆ
วางไฟล์ใดๆ เพื่อรับสตริง Base64, data URL (data:mime;base64,…) หรือถอดรหัสสตริง Base64 กลับเป็นไฟล์ไบนารี
สลับ Base64 แบบ URL-safe (Base64URL, RFC 4648) — แทนที่ + ด้วย - และ / ด้วย _ เพื่อใช้ใน URL, ชื่อไฟล์, JWT ฯลฯ
รองรับ Unicode เต็มรูปแบบสำหรับทุกภาษา, อีโมจิ, CJK, สคริปต์ RTL ใช้ TextEncoder/TextDecoder เพื่อไม่ให้มีอะไรเสียหาย
ตัดบรรทัดสไตล์ MIME ที่ 64 หรือ 76 อักขระเป็นตัวเลือก และตัด padding เป็นตัวเลือก — สำหรับลายเซ็น, cookie, โทเค็นกะทัดรัด
Native browser APIs, no upload, lossless round-trip for any text or file.
Toggle between text mode (paste any string) and file mode (drop any file up to ~50 MB). Text is processed via TextEncoder for proper UTF-8 handling — emoji and non-ASCII characters round-trip correctly. Files are read as ArrayBuffer.
JavaScript's built-in btoa encodes the bytes to Base64. For URL-safe variant we replace + with - and / with _, and optionally strip padding (the format JWT uses). For very large files we chunk encoding to avoid blocking the main thread.
Paste a Base64 string and we run atob to decode. If you encoded a binary file originally, we offer a download with the original MIME type; if you encoded text, we decode it back via TextDecoder. Both directions are lossless.
One-click copy puts the Base64 on your clipboard. Or download as a .txt file. Or generate a data:image/png;base64,... URI for inline embedding in CSS / HTML — assembled in your browser.
What people actually use Base64 for, and how iKit fits in.
Convert a 2 KB icon to a Data URI to inline it in a stylesheet — saves an HTTP request. iKit produces the full data:image/png;base64,... string ready to paste.
Decode the middle segment of a JWT to inspect the claims. Pair this with iKit's JSON Decoder for a clean two-step debugging flow that never sends the token to a server.
When a transactional email API requires Base64-encoded attachments, drop the file into iKit, copy the result, paste into your request body. No CLI base64 dance, no platform differences (macOS vs Linux flags).
Decode a PEM block (after stripping the BEGIN/END lines) to inspect the raw DER bytes. Or encode a binary key into PEM for tools that only accept text format.
Base64 is the default carrier for sensitive payloads — JWTs containing user IDs and permissions, embedded customer photos, internal API responses. A server-side Base64 tool sees every byte you paste. iKit's encoder runs purely in JavaScript, so nothing leaves your browser tab.
fetch or XHR calls during encode or decode.
บทความเชิงลึกและการเปรียบเทียบเครื่องมือจากบล็อก iKit
ไม่ การเข้ารหัสและถอดรหัสทั้งหมดเกิดขึ้นในเบราว์เซอร์ของคุณโดยใช้ JavaScript API ในตัว (TextEncoder, btoa, atob) ไม่มีอะไรถูกอัปโหลด บันทึก หรือเก็บ
Base64 มาตรฐานใช้ + และ / ซึ่งมีความหมายพิเศษใน URL URL-safe Base64 (RFC 4648 §5) แทนที่ด้วย - และ _ ตามลำดับ ดังนั้นเอาต์พุตจึงปลอดภัยที่จะใช้ใน URL, ชื่อไฟล์ และโทเค็นเช่น JWT
ใช่ เราใช้ TextEncoder เพื่อแปลงข้อความของคุณเป็นไบต์ UTF-8 ก่อนเข้ารหัส และ TextDecoder เพื่อแปลงไบต์ที่ถอดรหัสกลับ อักขระ Unicode ใดๆ — CJK, อีโมจิ, สคริปต์ RTL — จะวนกลับอย่างถูกต้อง
ได้ สลับเป็นโหมดไฟล์และวางไฟล์ใดๆ เครื่องมือให้สตริง Base64, data URL ที่คุณสามารถวางลงใน HTML/CSS หรือการดาวน์โหลด.txt ขนาดไฟล์ถูกจำกัดโดยหน่วยความจำของเบราว์เซอร์ (โดยปกติทำงานได้ถึงหลายร้อย MB)
Base64 มาตรฐานเติม '=' ลงในเอาต์พุตเพื่อให้ความยาวเป็นทวีคูณของ 4 การใช้งานบางอย่าง (JWT, โทเค็น URL) ตัด padding เพื่อประหยัดพื้นที่; ตัวถอดรหัสสามารถสร้างใหม่ได้ ทำเครื่องหมาย 'ไม่มี padding' เพื่อตัด = ที่ท้าย