Toolypet
डेव टूल्स/Base64 एन्कोडर/डिकोडर

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

टेक्स्ट को Base64 में एन्कोड करें या Base64 को टेक्स्ट में डिकोड करें

इनपुट

आउटपुट

परिणाम यहाँ दिखाई देगा...

विकल्प

Base64 Encoding Guide

Learn how to use Base64 encoding and decoding effectively

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to encode binary data for transmission over text-based protocols like email or to embed binary data in JSON, XML, or HTML.

How to Use This Tool

  1. Enter text or a Base64 string in the input field
  2. Click 'Encode' to convert text to Base64
  3. Click 'Decode' to convert Base64 back to text
  4. Copy the result using the copy button

Pro Tips

  • Base64 encoding increases data size by approximately 33%
  • Use the swap button to quickly reverse encode/decode operations
  • Base64 is not encryption - it's encoding and can be easily decoded

Browser Support

Base64 encoding/decoding is supported in all modern browsers using the built-in btoa() and atob() functions. This tool also handles UTF-8 characters properly.

अक्सर पूछे जाने वाले प्रश्न

Base64 एन्कोडिंग क्या है?

Base64 बाइनरी डेटा को 64 कैरेक्टर्स (A-Z, a-z, 0-9, +, /) का उपयोग करके टेक्स्ट में बदलता है। यह बाइनरी डेटा को टेक्स्ट-बेस्ड प्रोटोकॉल (ईमेल, JSON, HTML) में सुरक्षित रूप से ट्रांसमिट करने के लिए उपयोग होता है।

Base64 से डेटा साइज़ क्यों बढ़ता है?

Base64 3 बाइट्स को 4 कैरेक्टर्स में बदलता है, जिसके परिणामस्वरूप लगभग 33% साइज़ वृद्धि होती है। पैडिंग के लिए = कैरेक्टर भी जोड़े जाते हैं। यह ट्रेड-ऑफ़ टेक्स्ट ट्रांसमिशन संगतता के लिए आवश्यक है।

Base64 एन्क्रिप्शन के लिए सुरक्षित है?

नहीं, Base64 एन्कोडिंग है, एन्क्रिप्शन नहीं। कोई भी इसे आसानी से डिकोड कर सकता है। संवेदनशील डेटा के लिए AES, RSA जैसी असली एन्क्रिप्शन का उपयोग करें। Base64 केवल डेटा फ़ॉर्मेट बदलता है, सुरक्षा प्रदान नहीं करता।

URL-सेफ़ Base64 क्या है?

स्टैंडर्ड Base64 में + और / कैरेक्टर्स URL में समस्या पैदा कर सकते हैं। URL-सेफ़ Base64 इनके बजाय - और _ का उपयोग करता है। JWT और URL पैरामीटर्स में URL-सेफ़ वेरिएंट का उपयोग होता है।

इमेज को Base64 में क्यों कन्वर्ट करें?

Base64 इमेज को सीधे HTML/CSS में एम्बेड किया जा सकता है (data URI)। यह HTTP रिक्वेस्ट्स कम करता है। छोटी इमेज (आइकन, स्प्राइट) के लिए उपयोगी। हालांकि, साइज़ बढ़ने के कारण बड़ी इमेज के लिए अनुशंसित नहीं है।