การเข้ารหัส
Base32
เข้ารหัสและถอดรหัส Base32 (RFC 4648) — ข้อความและไฟล์ ทำงานในเบราว์เซอร์โดยตรง
Base32, like Base64, encodes binary data as text, but uses an alphabet of only 32 characters (A-Z2-7) with no easily confused characters (0/O, 1/I). That's why Base32 shows up more often where a string might be typed by a person, not just copy-pasted.
How to use it
- Encode: enter text or pick a file to get a Base32 string per RFC 4648.
- Decode: paste a Base32 string to get the original text or file back.
- The alphabet is case-insensitive per the spec, though uppercase is the conventional way to write it.
Common uses
- Generating secrets for TOTP/2FA — authenticator apps use Base32 for the secret key specifically.
- Encoding identifiers or tokens a user might need to type by hand without confusing similar-looking characters.
- Working with formats that require Base32 instead of Base64 (some DNS records or case-insensitive file systems, for instance).
Things to keep in mind
Base32 grows data by roughly 60% (versus ~33% for Base64) — a trade-off for broader compatibility with case-insensitive systems and manual entry.
Base32hex is a separate variant of the same standard with a different alphabet (0-9A-V) that preserves sort order — it's incompatible with plain Base32.
บทความเกี่ยวกับเครื่องมือนี้: Base32: ต่างจาก Base64 อย่างไรและสะดวกกว่าเมื่อไหร่
คำถามที่พบบ่อย
Base32 ต่างจาก Base64 อย่างไร?
Base32 ใช้ชุดอักขระที่เล็กกว่าเพียง 32 ตัว (A-Z และ 2-7) ทำให้ไม่สนใจตัวพิมพ์ใหญ่เล็กและไม่มีอักขระที่มองสับสนได้ง่าย จึงนิยมใช้กับคีย์ลับ TOTP, ป้ายกำกับ DNS และชื่อไฟล์ แลกมาด้วยผลลัพธ์ที่ยาวกว่า
ทำไมผลลัพธ์ Base32 ถึงใหญ่กว่า Base64 มาก?
Base32 เข้ารหัส 5 บิตต่อหนึ่งอักขระแทนที่จะเป็น 6 บิต ผลลัพธ์จึงใหญ่กว่าข้อมูลต้นฉบับประมาณ 60% ซึ่งมากกว่าของ Base64 ที่ราว 33% อย่างเห็นได้ชัด
เครื่องมือนี้ส่งข้อมูลของฉันไปที่ไหนหรือไม่?
ไม่ การเข้ารหัสและถอดรหัสทั้งหมดทำงานในเบราว์เซอร์ของคุณตามมาตรฐาน RFC 4648 เท่านั้น ไม่มีข้อมูลใดถูกส่งขึ้นเซิร์ฟเวอร์
ทำไมชุดตัวอักษรของ Base32 จึงไม่มีเลข 0 และ 1?
ตัวเลขเหล่านี้สับสนกับตัวอักษร O และ I/l ได้ง่ายเมื่ออ่านหรือพิมพ์ด้วยมือ มาตรฐาน RFC 4648 จึงจงใจตัดออกจากชุดตัวอักษร เหลือไว้เฉพาะสัญลักษณ์ที่ไม่กำกวม
Base32 ต่างจาก Base32hex อย่างไร?
Base32hex (RFC 4648 เดียวกัน) ใช้ชุดตัวอักษร 0-9A-V แทน A-Z2-7 และรักษาลำดับการเรียงของสตริงให้เหมือนกับไบต์ต้นฉบับ ทั้งสองรูปแบบใช้แทนกันไม่ได้