Text & Code
Base64 Text Encoder / Decoder
Encode text to Base64 and decode Base64 back to text. URL-safe mode available.
Your files stay on your device - processed locally via WebAssembly, never uploaded
🔒 All encoding and decoding happens in your browser. Nothing is sent anywhere.
Embed this tool on your website
Copy this code to add the Base64 Text Encoder / Decoder to your site for free. It runs entirely in your visitors' browsers - no API key, no usage limits.
<iframe src="https://optipix.art/embed/base64-text" width="100%" height="600" style="border:1px solid #e4e4e7;border-radius:8px;" title="Base64 Text Encoder / Decoder by OptiPix" loading="lazy"></iframe> <p style="font-size:12px">Free tool by <a href="https://optipix.art/base64-text">OptiPix Base64 Text Encoder / Decoder</a></p>
❤️ Love this tool? Support our team.
No ads, no tracking, no limits. Tips keep 104 tools free for everyone.
Secure payment via Stripe · No account needed
About Base64 Text Encoder / Decoder
Last updated: May 2026
OptiPix Base64 テキストエンコーダー/デコーダーは、ブラウザで直接プレーンテキストとBase64エンコーディングを変換します。UTF-8テキストをBase64にエンコードしたり、Base64文字列を読み取り可能なテキストにデコードしたりできます。URLおよびファイル名との互換性のために、+と/の代わりに-と_を使用するようにURLセーフBase64モードを切り替えます。入力するたびにリアルタイムで変換するには、ライブモードを有効にします。エンコーディングのオーバーヘッドを示す入出力サイズ統計を表示します。任意のファイルをドロップしてバイトをBase64文字列にエンコードするか、Base64文字列を貼り付けてデコードし、ファイルとしてダウンロードします。このツールは、テキストと任意のファイルを処理します。プレビューとCSS出力を備えた画像固有のBase64については、画像からBase64ツールを参照してください。すべての処理はローカルのブラウザで行われます。
How It Works
このツールは、ASCII範囲のテキストに対してJavaScriptのbtoa()およびatob()関数を使用します。完全なUTF-8サポートのために、まずTextEncoderを使用してテキストをエンコードし、次にバイト配列をBase64文字列に変換します。URLセーフモードは、出力で+を-に、/を_に置き換えます。
Use Cases
- •APIキーとトークンを構成ファイルにエンコードする
- •APIおよびJWTからBase64エンコードされたデータをデコードする
- •ファイルをBase64に変換してJSONペイロードに埋め込む
- •メールMIMEエンコーディング用のデータ準備
- •WebアプリケーションでBase64エンコードされた文字列をデバッグする
You Might Also Like
If you find Base64 Text Encoder / Decoder useful, check out these related tools: URL Encoder / Decoder, Text to Binary / Hex / Octal, and Hash Generator. All tools run entirely in your browser with no uploads or signups required.
Explore more: Browse all tools · Step-by-step guides · Tips & tutorials · Compare tools
Frequently Asked Questions
Base64エンコーディングとは何ですか?
URLセーフBase64とは何ですか?
テキストだけでなくファイルもエンコードできますか?
これは画像からBase64ツールとどう違いますか?
私のデータはサーバーに送信されますか?
Related Tools
URL Encoder / Decoder
Encode and decode URLs with percent-encoding. Parse URLs into components.
Text to Binary / Hex / Octal
Convert text to binary, hexadecimal, octal, and decimal - and back.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and 10+ more formats.