LocalExcelTool
はじめる

Base32 エンコード

テキストをBase32に変換。大文字と数字だけで表現。

Base32 エンコードとは

Base32エンコードとは、データをA-Zと2-7の32種類の文字で表現する符号化方式です。Base64より記号が少なく、電話番号やファイル名に安全です。

🔒 処理はすべてブラウザ内で完結し、データは送信されません。

このツールの前提

処理場所
このページのブラウザ内(JavaScript / Canvas)
アップロード
なし — ファイルは端末の外に出ません
オフライン
ページを開いた後は通信不要

Five bits per character, and that is the point

Base32 uses the alphabet A–Z followed by 2–7, five bits per character, padded with = to a multiple of eight characters. It carries 60% more characters than Base64 for the same bytes — a deliberate cost, paid for two properties Base64 lacks.

The first property is case-insensitivity: everything is uppercase, so a value survives being read aloud, retyped, or passed through a system that folds case. The second is the absence of look-alike characters — there is no 0 or 1 in the alphabet, which removes the 0/O and 1/I/l confusion that ruins hand-typed Base64. That is why TOTP secrets and some licence keys are Base32.

Where it shows up in practice

Authenticator apps take a Base32 secret, usually shown grouped in fours (JBSW Y3DP EHPK 3PXP). The same alphabet appears in DNSSEC NSEC3 hashes, in onion addresses, and in various hardware-token provisioning formats. If a system hands you a key that is all uppercase letters and digits 2–7, it is Base32.

The alphabet omits 0 1 8 9 entirely, so a string containing any of them was not produced by a standard Base32 encoder — it is either a different base, a typo, or a custom alphabet. Checking for those digits is the fastest way to tell a transcription error from an encoding problem.

Reading it back without losing the payload

Decoding is case-insensitive here, because uppercase folding is part of the convention, and padding is optional. What is not optional is the alphabet: Base32hex uses 0–9 A–V instead, so a Base32hex value decoded with the standard alphabet yields plausible-looking but wrong bytes.

Spaces and line breaks inside the string should be ignored — group separators are for humans. If a decoded TOTP secret produces codes that an authenticator rejects, compare the byte length: most secrets are 10, 16 or 20 bytes, and anything odd usually means a character was dropped during transcription.

使い方

  1. 1.テキストを入力
  2. 2.エンコード
  3. 3.結果をコピー

他の方法との比較

同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。

観点このツールサーバー側の変換サービス
ファイルの処理場所このページのブラウザ内ベンダーのサーバー(アップロード後)
アカウント不要多くの場合必要(無料枠の制限解除に登録を求める)
無料で扱えるサイズサイズ制限なし(回数制限もなし)数ファイル/時間、または 5〜10MB 程度で課金 wall
料金無料。Pro は月 $9(大きいファイルと AI 機能のみ)サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点)
オフライン一度開けば通信不要不可
20MB を処理し始めるまで待ち時間なし(アップロードが無い)アップロードが支配的(10Mbps 上りで約 16 秒)
保証できないこと出力は決定的です。他の実装と突き合わせて検証できます同じ(変換の原理は変わらない)

サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。

よくある質問

Base32とは?

32種類の文字(A-Z, 2-7)でデータを表す符号化方式です。

Base64との違いは?

記号を使わないため、ケース非依存の環境でも安全に扱えます。

この変換で失われるもの

エンコードとハッシュは Web Crypto API または純 JavaScript 実装で行います。出力は決定的で、同じ入力からは常に同じ結果になります。他のツールと突き合わせて検証できます。

その他のエンコード / デコード