Base64 Encoder

Base64 एन्कोडर / डिकोडर

टेक्स्ट या फ़ाइलों को Base64 में एन्कोड करें, या Base64 को वापस डिकोड करें। URL-safe वेरिएंट, UTF-8 सुरक्षित, केवल क्लाइंट-साइड।

नहीं। सभी एन्कोडिंग और डिकोडिंग आपके ब्राउज़र में अंतर्निहित JavaScript API (TextEncoder, btoa, atob) का उपयोग करके होती है। कुछ भी अपलोड, लॉग या संग्रहीत नहीं होता।

मानक Base64 + और / का उपयोग करता है जिनका URL में विशेष अर्थ होता है। URL-safe Base64 (RFC 4648 §5) उन्हें क्रमशः - और _ से बदल देता है, ताकि आउटपुट URLs, फ़ाइल नामों और JWT जैसे टोकन में सुरक्षित रूप से उपयोग किया जा सके।

इनपुट

0 वर्ण

डिकोड किया गया आउटपुट

0 वर्ण

Base64 क्यों?

तेज़, सटीक, हर वह विकल्प जिसकी आप अपेक्षा करते हैं।

एन्कोड और डिकोड

किसी भी टेक्स्ट या फ़ाइल को Base64 में बदलें, या Base64 को मूल डेटा में वापस डिकोड करें। टाइप करते समय तुरंत पूर्वावलोकन।

डिज़ाइन से गोपनीयता

सभी एन्कोडिंग और डिकोडिंग आपके ब्राउज़र में होती है। आपके टेक्स्ट और फ़ाइलें कभी किसी सर्वर पर अपलोड नहीं होतीं।

फ़ाइलें और data URL

कोई भी फ़ाइल ड्रॉप करें ताकि उसकी Base64 स्ट्रिंग, data URL (data:mime;base64,…) मिले, या Base64 स्ट्रिंग को बाइनरी फ़ाइल में डिकोड करें।

URL-safe वेरिएंट

URL-safe Base64 (Base64URL, RFC 4648) टॉगल करें — URL, फ़ाइल नाम, JWT आदि में उपयोग के लिए + को - और / को _ से बदल देता है।

UTF-8 सुरक्षित

किसी भी भाषा, इमोजी, CJK, RTL लिपियों के लिए पूर्ण Unicode समर्थन। TextEncoder/TextDecoder का उपयोग करता है ताकि कुछ भी खराब न हो।

लाइन रैप और padding

64 या 76 वर्णों पर वैकल्पिक MIME-शैली लाइन रैप, और वैकल्पिक 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 API (TextEncoder, btoa, atob) का उपयोग करके होती है। कुछ भी अपलोड, लॉग या संग्रहीत नहीं होता।

URL-safe Base64 क्या है?

मानक Base64 + और / का उपयोग करता है जिनका URL में विशेष अर्थ होता है। URL-safe Base64 (RFC 4648 §5) उन्हें क्रमशः - और _ से बदल देता है, ताकि आउटपुट URLs, फ़ाइल नामों और JWT जैसे टोकन में सुरक्षित रूप से उपयोग किया जा सके।

क्या यह Unicode / इमोजी को सही ढंग से संभालता है?

हाँ। हम एन्कोडिंग से पहले आपके टेक्स्ट को UTF-8 बाइट्स में बदलने के लिए TextEncoder का उपयोग करते हैं, और डिकोडेड बाइट्स को वापस बदलने के लिए TextDecoder का उपयोग करते हैं। कोई भी Unicode वर्ण — CJK, इमोजी, RTL लिपियाँ — सही ढंग से राउंड-ट्रिप करते हैं।

क्या मैं PDF या छवियों जैसी फ़ाइलें एन्कोड कर सकता हूँ?

हाँ। फ़ाइल मोड पर स्विच करें और कोई भी फ़ाइल ड्रॉप करें। टूल आपको Base64 स्ट्रिंग, HTML/CSS में पेस्ट करने योग्य data URL, या.txt डाउनलोड देता है। फ़ाइल का आकार ब्राउज़र मेमोरी तक सीमित है (आमतौर पर कई सौ MB तक काम करता है)।

padding के साथ और बिना padding के बीच क्या अंतर है?

मानक Base64 आउटपुट को '=' वर्णों से pad करता है ताकि इसकी लंबाई 4 का गुणक हो। कुछ उपयोग (JWT, URL टोकन) स्थान बचाने के लिए padding हटा देते हैं; डिकोडर इसे पुनर्निर्मित कर सकता है। अनुगामी = हटाने के लिए 'कोई padding नहीं' चेक करें।