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

Base64 स्ट्रिंग्स को ऑनलाइन एनकोड और डिकोड करें

डेवलपर टूल्स

Base64 एनकोडर / डिकोडर का उपयोग कैसे करें

  1. 1चुनें कि Encode करना है या Decode
  2. 2इनपुट फ़ील्ड में अपना टेक्स्ट दर्ज करें
  3. 3परिणाम तुरंत आउटपुट फ़ील्ड में दिखाई देता है
  4. 4परिणाम कॉपी करने के लिए "Copy" पर क्लिक करें
  5. 5इनपुट और आउटपुट स्विच करने के लिए "Swap" का उपयोग करें

Base64 एनकोडर / डिकोडर के बारे में

Base64 एक बाइनरी-से-टेक्स्ट एनकोडिंग स्कीम है जो डेटा ट्रांसमिशन और वेब API में व्यापक रूप से उपयोग की जाती है। हमारा टूल टेक्स्ट को Base64 में एनकोड करना या डीकोड करना आसान बनाता है।

Base64 एनकोडिंग का उपयोग इमेज के डेटा URI, HTTP Basic Authentication और JSON/XML में बाइनरी डेटा एम्बेड करने में किया जाता है।

Base64 एनकोडर / डिकोडर की मुख्य विशेषताएं

  • Fast and accurate Base64 Encoder processing
  • No installation required — works in browser
  • Free to use with no limitations
  • Privacy-focused — data never leaves your device
  • Mobile and desktop compatible
  • Instant results with live preview

समर्थित फॉर्मेट

इनपुट फॉर्मेट

Plain textUTF-8 stringsBase64-encoded strings

आउटपुट फॉर्मेट

Base64 (standard RFC 4648)Decoded plain text

For encoding binary files (images, PDFs), use the Image to Base64 tool instead.

उदाहरण

Encode a string to Base64

Useful for HTTP Basic Auth headers.

इनपुट

user:secretpassword

आउटपुट

dXNlcjpzZWNyZXRwYXNzd29yZA==

Decode a Base64 JWT payload

Base64 decode the middle segment of a JWT token.

इनपुट

eyJ1c2VySWQiOjEyMywicm9sZSI6ImFkbWluIn0=

आउटपुट

{"userId":123,"role":"admin"}

सामान्य उपयोग के मामले

  • Professional Base64 Encoder tasks
  • Quick everyday calculations
  • Educational purposes and learning
  • Business and workplace productivity
  • Personal projects and hobbies
  • Decoding Base64 strings received from third-party APIs

समस्या निवारण

Invalid Base64 string — incorrect padding

समाधान

Base64 strings must have a length that is a multiple of 4. Missing = padding characters at the end cause this error. Add one or two = characters to fix it.

Output contains garbled characters

समाधान

The decoded text may be binary data, not readable text. If you are decoding an image or file, use the Base64 to Image tool instead.

URL-safe Base64 does not decode correctly

समाधान

URL-safe Base64 uses - and _ instead of + and /. Enable the URL-safe option or replace those characters manually before decoding.

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

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters. It's used to safely transmit data over text-based protocols.

When should I use Base64?

Use Base64 when you need to embed binary data in text formats like JSON or XML, or when transmitting data over channels that only support text.

Does Base64 encrypt my data?

No. Base64 is encoding, not encryption. Anyone with a Base64 decoder can read the original content. Never use Base64 to protect sensitive data.

Why does Base64 output end with == or =?

Base64 pads output to a multiple of 4 characters using = signs. One or two = characters may appear depending on the input length.

Can I encode images to Base64?

For images, use the dedicated Image to Base64 tool which handles binary file input. This tool is optimized for text strings.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ so the encoded string can be safely used in URLs and filenames without percent-encoding.