RevealTheme logo

Base32エンコーダー&デコーダー

Base32文字列をエンコード・デコードします。TOTPシークレット、DNSレコード、大文字小文字を区別しない識別子などで使われます。

このツールの使い方

  1. 1

    Choose 'Encode' to turn text into Base32, or 'Decode' to turn Base32 back into text, using the mode dropdown.

  2. 2

    Type or paste your input into the text box — UTF-8 text when encoding, or a Base32 string when decoding.

  3. 3

    Read the result in the gray output panel below; it updates instantly as you type, with no button to press.

  4. 4

    Select and copy the output text to use it elsewhere.

Base32エンコーダー&デコーダーとは何ですか?

Base32は、32個の英数字(A〜Z、2〜7)を使ってバイナリデータをエンコードします。Base64とは異なり、大文字と小文字を区別せず、見た目で混同しやすい文字(0/O、1/I/l)を避けているため、手書きや口頭で伝えるのに適しています。主に2FAのシークレットキーやDNSレコードで使われます。

よくある活用例

  • Inspecting a TOTP/2FA setup string by decoding the Base32 secret an authenticator app expects.

  • Encoding a short identifier into a case-insensitive form safe to drop into a DNS label or subdomain.

  • Hand-checking the output of a server library against a known-good Base32 implementation while debugging.

  • Producing tokens or codes meant to be read aloud or typed without confusing 0/O or 1/I/l.

  • Decoding a Base32 string copied from a config file or QR-code payload to see the underlying text.

  • Teaching or learning how bit-level encodings group data, by watching how input maps to 5-bit chunks.

よくある質問

なぜBase64ではなくBase32を使うのですか?
Base32はコンパクトさで劣ります(5バイトあたり8文字に対し、Base64は3バイトあたり4文字)が、大文字小文字を区別しないため、人が書き写すのが容易です。

関連ツール