Base64 Encoder

Base64 ኢንኮደር / ዲኮደር

ጽሑፍ ወይም ፋይሎችን ወደ Base64 ኢንኮድ ያድርጉ፣ ወይም Base64 ወደ ኋላ ዲኮድ ያድርጉ። URL-safe ተለዋጭ፣ UTF-8 ደህንነቱ የተጠበቀ፣ በደንበኛ በኩል ብቻ።

አይ። ሁሉም ኢንኮዲንግ እና ዲኮዲንግ በአሳሽዎ ውስጥ አብሮ የተሰራ JavaScript APIs (TextEncoder፣ btoa፣ atob) በመጠቀም ይከናወናል። ምንም አይሰቀልም፣ አይመዘገብም ወይም አይከማችም።

መደበኛ Base64 በ URLs ውስጥ ልዩ ትርጉም ያላቸውን + እና / ይጠቀማል። URL-safe Base64 (RFC 4648 §5) በቅደም ተከተል በ - እና _ ይተካቸዋል፣ ስለዚህ ውጤቱ በ URLs፣ የፋይል ስሞች እና እንደ JWT ባሉ ቶከኖች ውስጥ ደህንነቱ በተጠበቀ ሁኔታ ሊጠቀም ይችላል።

ግብአት

0 ቁምፊዎች

የተዲኮድ ውጤት

0 ቁምፊዎች

ለምን Base64?

ፈጣን፣ ትክክለኛ፣ የሚጠበቁ ሁሉም አማራጮች።

ኢንኮድ እና ዲኮድ

ማንኛውንም ጽሑፍ ወይም ፋይል ወደ Base64 ይቀይሩ፣ ወይም Base64 ወደ መጀመሪያው ውሂብ ይመልሱ። ሲጽፉ ፈጣን ቅድመ እይታ።

በንድፍ የግል ደህንነት

ሁሉም ኢንኮዲንግ እና ዲኮዲንግ በአሳሽዎ ውስጥ ይከናወናል። ጽሑፍዎ እና ፋይሎችዎ በጭራሽ ወደ ማንኛውም አገልጋይ አይሰቀሉም።

ፋይሎች እና data URLs

የ Base64 ሕብረቁምፊውን፣ data URL (data:mime;base64,…) ለማግኘት ማንኛውንም ፋይል ይጣሉ፣ ወይም Base64 ሕብረቁምፊ ወደ ባይናሪ ፋይል ይዲኮዱ።

URL-safe ተለዋጭ

URL-safe Base64 (Base64URL, RFC 4648) ይቀያይሩ — + ን በ - እና / ን በ _ ይተካል በ URLs፣ የፋይል ስሞች፣ JWT ወዘተ ለመጠቀም።

UTF-8 ደህንነቱ የተጠበቀ

ለማንኛውም ቋንቋ፣ ኢሞጂ፣ CJK፣ RTL ስክሪፕቶች ሙሉ Unicode ድጋፍ። ምንም እንዳይበላሽ TextEncoder/TextDecoder ይጠቀማል።

የመስመር መጠቅለያ እና padding

አማራጭ MIME-style የመስመር መጠቅለያ በ 64 ወይም 76 ቁምፊዎች፣ እና አማራጭ padding ማስወገድ — ለፊርማዎች፣ cookies፣ የተጨመቁ ቶከኖች።

How Base64 encoding works in your browser

Native browser APIs, no upload, lossless round-trip for any text or file.

  1. 1

    Pick text or file mode

    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.

  2. 2

    Encoder runs locally

    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.

  3. 3

    Decoder is the inverse

    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.

  4. 4

    Copy, download, or generate a Data URI

    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.

Common Base64 workflows

What people actually use Base64 for, and how iKit fits in.

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.

JWT debugging

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.

Email attachments via API

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).

PEM keys and certificates

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.

Why Base64 privacy is non-negotiable

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.

  • Zero fetch or XHR calls during encode or decode.
  • Files up to ~50 MB processed locally without upload.
  • Lossless round-trip — encode then decode returns the exact original bytes.

ተዛማጅ መመሪያዎች

ከ iKit ብሎግ ጥልቅ ትምህርቶች እና የመሳሪያ ንፅፅሮች።

ተደጋጋሚ ጥያቄዎች

ግብአቴ ወደ አገልጋይ ይላካልን?

አይ። ሁሉም ኢንኮዲንግ እና ዲኮዲንግ በአሳሽዎ ውስጥ አብሮ የተሰራ JavaScript APIs (TextEncoder፣ btoa፣ atob) በመጠቀም ይከናወናል። ምንም አይሰቀልም፣ አይመዘገብም ወይም አይከማችም።

URL-safe Base64 ምንድን ነው?

መደበኛ Base64 በ URLs ውስጥ ልዩ ትርጉም ያላቸውን + እና / ይጠቀማል። URL-safe Base64 (RFC 4648 §5) በቅደም ተከተል በ - እና _ ይተካቸዋል፣ ስለዚህ ውጤቱ በ URLs፣ የፋይል ስሞች እና እንደ JWT ባሉ ቶከኖች ውስጥ ደህንነቱ በተጠበቀ ሁኔታ ሊጠቀም ይችላል።

Unicode / ኢሞጂን በትክክል ይይዛል?

አዎ። ከመኮድ በፊት ጽሑፍዎን ወደ UTF-8 ባይቶች ለመቀየር TextEncoder እንጠቀማለን፣ እና የተዲኮድ ባይቶችን ለመመለስ TextDecoder። ማንኛውም Unicode ቁምፊ — CJK፣ ኢሞጂ፣ RTL ስክሪፕቶች — በትክክል ይዞር።

እንደ PDFs ወይም ምስሎች ያሉ ፋይሎችን ኢንኮድ ማድረግ እችላለሁ?

አዎ። ወደ የፋይል ሁነታ ይቀይሩ እና ማንኛውንም ፋይል ይጣሉ። መሣሪያው የ Base64 ሕብረቁምፊ፣ በ HTML/CSS ውስጥ ሊለጥፉት የሚችሉት data URL ወይም.txt ማውረድ ይሰጥዎታል። የፋይል መጠን በአሳሽ ማህደረ ትውስታ የተገደበ ነው (ብዙውን ጊዜ እስከ ብዙ መቶ MB ይሰራል)።

በ padding እና ያለ padding መካከል ያለው ልዩነት ምንድን ነው?

መደበኛ Base64 ውጤቱን በ '=' ቁምፊዎች ይሞላል ስለዚህ ርዝመቱ የ 4 ብዙ ነው። አንዳንድ አጠቃቀሞች (JWT፣ URL ቶከኖች) ቦታን ለመቆጠብ padding ያስወግዳሉ፣ ዲኮደሩም ሊያገግመው ይችላል። የኋለኛውን = ለማስወገድ 'ያለ padding' ይፈትሹ።