Base64 Converter Controls

मोड:
Currently in encode mode. Click to switch to decode mode.
Swaps the content between input and output areas and toggles the conversion mode
Upload a file to encode to Base64 or decode from Base64 format

इनपुट टेक्स्ट/डेटा

Base64 आउटपुट

Base64 एन्कोड डेटा यहाँ दिखाई देगा

Base64 एन्कोडर और डिकोडर - ऑनलाइन Base64 टूल

Base64 encoder/decoder एक ऑनलाइन टूल है जो binary data को ASCII string में बदलता है ताकि उसे email, JSON, query strings या data URIs में सुरक्षित रूप से भेजा जा सके। इस Base64 converter से files, images या text encode करें या Base64 string को decode करके original data प्राप्त करें। Base64 encryption नहीं है; यह reversible encoding है जो लगभग 33% size बढ़ाता है।

Base64 कैसे काम करता है

Algorithm input को 3-byte chunks में बांटता है और 64-character alphabet (A–Z, a–z, 0–9, +, /) का उपयोग करता है। यदि length 3 का multiple नहीं है, तो = padding जोड़ा जाता है। URL-safe variant +/ की जगह -_ का उपयोग करता है। यह टूल दोनों variants को support करता है।

Practical examples

छोटा PNG या SVG encode करके CSS या HTML में data URI के रूप में embed करें; JSON payload से Base64 string decode करके attachment recover करें; debugging के लिए random bytes को Base64 token में बदलें। उदाहरण: data:image/png;base64,iVBORw0KGgo... को browser में paste करके image देखें।

Step-by-step उपयोग

Text के लिए UTF-8 encoding का उपयोग करें ताकि international characters सुरक्षित रहें। Files के लिए data browser में locally process होता है। Text paste करें या file upload करें, encode/decode चुनें, फिर copy या .txt file के रूप में download करें।

Caveats: size और security

Base64 लगभग एक-तिहाई size बढ़ाता है, जो large assets के लिए bandwidth प्रभावित कर सकता है। इसे security control के रूप में उपयोग न करें—confidentiality के लिए encryption और integrity के लिए signatures या MACs का उपयोग करें।

Further reading

Base64 छोटे assets, data URLs और debugging के लिए उपयोगी है। Production में उपयोग करते समय security और size trade-offs ध्यान में रखें।

Advertisement