Base32 एन्कोडर डिकोडर
4 वैरिएंट, फ़ाइल conversion, padding control, hex output और local downloads के साथ Base32 को ऑनलाइन encode/decode करें।
संबंधित सुझाव
Base32 क्या है?
Base32 binary-to-text encoding है जो raw bytes को 32 printable characters में दिखाती है। Standard form RFC 4648 से आती है और A-Z तथा 2-7 का उपयोग करती है। हर 5 bits एक output character बनाते हैं, इसलिए output आम तौर पर original bytes से लगभग 60% बड़ा होता है।
Base32 सबसे छोटा प्रारूप नहीं है, लेकिन इसमें विशेष चिह्न कम होते हैं, बड़े/छोटे अक्षरों का फर्क संभालना आसान रहता है, और यह उन स्ट्रिंगों के लिए उपयोगी है जिन्हें मनुष्य पढ़ते या टाइप करते हैं। TOTP रहस्य, कुछ DNS/config मान, activation code और पढ़ने योग्य ID में Base32 आम है।
इस page पर RFC 4648 Base32, Base32hex, Crockford Base32 और z-base-32 समर्थित हैं, साथ में strict validation, padding control, line wrapping, text/file conversion और hex inspection भी है।
उपयोग के मामले
- जांचें कि TOTP/OTP secret standard Base32 है या नहीं, या जरूरत पड़ने पर उसे Crockford या z-base-32 जैसे अधिक पठनीय रूप में बदलें।
- Binary configuration, certificate fragments, offline activation codes या resource fingerprints को special-symbol-free readable strings में बदलें।
- Missing padding, wrong variant या असामान्य length के कारण fail होने वाली third-party Base32 values debug करें।
- Unknown Base32 payload को पहले UTF-8 या hex में inspect करें, फिर जरूरत हो तो binary file download करें।
उपयोग कैसे करें
- पहले सही variant चुनें: RFC 4648, Base32hex, Crockford या z-base-32।
- Encode करते समय text या file input चुनें, फिर padding, lowercase और line-wrap width सेट करें।
- Decode करते समय Base32 string paste करें; strict validation चाहिए तो length और padding checks enable करें।
- Payload type के अनुसार result को text, hex या downloadable binary file के रूप में देखें।
विशेषताएं
- एक ही page पर 4 Base32 variants बदलें: RFC 4648, Base32hex, Crockford और z-base-32।
- Text और file दोनों संभालें: UTF-8 text encode करें या कोई local file Base32 string में बदलें।
- Decoded result को UTF-8 text, hex या downloadable binary file के रूप में देखें।
- Padding, case और wrapping control करें: = output करें, lowercase force करें या 64, 76 या custom width पर wrap करें।
- Strict validation browser में local रखें: length और padding check करें, data upload नहीं होता।
Base32, Base64 या Base58 कब इस्तेमाल करें?
ये तीनों binary data को printable characters में बदलते हैं, लेकिन compatibility, character safety और output length की प्राथमिकताएं अलग होती हैं।
| फ़ॉर्मैट | सबसे उपयुक्त | समझौता |
|---|---|---|
| Base32 | TOTP रहस्य, पढ़ने योग्य ID और बड़े/छोटे अक्षरों से कम संवेदनशील वातावरण | Alphabet human-friendly है, लेकिन output Base64 से लंबा होता है। |
| Base64 | सामान्य text/file transport, Data URLs और API payloads | ज्यादा compact है, लेकिन +, / और = जैसे characters आ सकते हैं; URL या filename में URL-safe variant बेहतर है।Base64 EncoderBase64 URL Safe |
| Base58 | हाथ से copy होने वाले addresses, QR short strings और blockchain-style identifiers | 0/O/I/l confusion घटाता है, लेकिन RFC 4648 family का हिस्सा नहीं है।Base58 Encoder Decoder |
Best Practices
Debug से पहले variant confirm करें
Base32 में सबसे आम गलती calculation नहीं, बल्कि गलत alphabet या variant होती है। अगर दूसरा system Base32hex, Crockford या z-base-32 चाहता है, तो standard output दिखने में ठीक होकर भी reject हो सकता है।
Text मानने से पहले hex देखें
Decoded bytes हमेशा UTF-8 text नहीं होते। Hex view से जल्दी पता चलता है कि payload certificate, image header, archive, random key या plain text है।
Manual entry के लिए Crockford या z-base-32 चुनें
अगर goal human typing errors घटाना है और strict RFC 4648 compatibility जरूरी नहीं है, तो ये variants O/0 और I/1 जैसी visual confusion कम करते हैं।
हर workflow को Base32 में रखने की जरूरत नहीं
कई practical tasks में अगला step Base64, hex या original file होता है। Task chain के अनुसार format बदलना अक्सर ज्यादा आसान होता है।
Base64 EncoderHexसामान्य प्रश्न
Base32 और Base64 में क्या चुनें?
छोटा और ज्यादा आम टेक्स्ट रूप चाहिए तो Base64 चुनें। कम विशेष चिह्न, बड़े/छोटे अक्षरों से कम संवेदनशील सिस्टम, या TOTP रहस्य जैसे मानव-पठनीय मान चाहिए तो Base32 बेहतर है।
RFC 4648, Base32hex, Crockford और z-base-32 में क्या फर्क है?
मुख्य फर्क alphabet और error tolerance है। RFC 4648 general standard है। Base32hex digits पहले रखता है। Crockford manual typing के लिए अच्छा है और O/0, I/1/L/1 accept करता है। z-base-32 readable lowercase strings को प्राथमिकता देता है।
कुछ Base32 strings = पर क्यों खत्म होती हैं?
RFC 4648 Base32 और Base32hex में = padding आम है। Crockford और z-base-32 आमतौर पर padding नहीं रखते। इस tool में encoding पर padding control कर सकते हैं और relaxed decode में missing padding संभल सकता है।
Decoded output खराब क्यों दिख रहा है?
Original data UTF-8 text न होकर binary, certificate, image या key material हो सकता है। Hex view देखें या restored file download करें।
क्या files को Base32 में बदलकर वापस restore कर सकते हैं?
हाँ। Encode mode में local file upload करें और decode mode में binary bytes restore करके download करें।
क्या data server पर upload होता है?
नहीं। Base32 encode, decode, hex view और download browser में local होते हैं।
समस्या निवारण
Third-party result से value match क्यों नहीं हो रही?
पहले variant check करें। Standard Base32, Base32hex, Crockford और z-base-32 के alphabets अलग होते हैं, इसलिए एक-दो characters का फर्क भी पूरा result बदल सकता है।
Strict mode invalid length क्यों बताता है?
Input में padding missing हो सकता है, invalid characters हो सकते हैं, या value किसी दूसरे variant से बनी हो सकती है। पहले relaxed mode में content पहचानें, फिर original string ठीक करें।
Decode के बाद empty या corrupted text क्यों दिखता है?
Original data UTF-8 text नहीं बल्कि binary file या random bytes हो सकते हैं। Hex view इस्तेमाल करें या decoded binary download करें।
शब्दकोश
- RFC 4648 Base32
- सबसे आम standard Base32 variant। A-Z और 2-7 का उपयोग करता है और = padding रख सकता है।
- Base32hex
- RFC 4648 का hexadecimal-order variant। इसका alphabet 0-9 और A-V है।
- Crockford Base32
- Human-friendly variant जो I, L, O और U हटाता है और decode में O/0 तथा I/1/L/1 स्वीकार करता है।
- z-base-32
- Human input के लिए variant, आमतौर पर lowercase और बिना padding।
- padding
- Standard Base32 output की expected length पूरी करने के लिए अंत में लगाए गए = characters।
4 Base32 variants की त्वरित तालिका
अगर variant तय नहीं है, तो alphabet और typical use से शुरुआत करें.
| Variant | Alphabet | = आम है? | Typical use |
|---|---|---|---|
RFC 4648 | A-Z + 2-7 | आमतौर पर हां | TOTP और standard Base32 compatibility |
Base32hex | 0-9 + A-V | आमतौर पर हां | Numeric ordering या protocol-specific fields |
Crockford | 0-9 + A-Z (I/L/O/U नहीं) | आमतौर पर नहीं | Manual entry, short codes और typo tolerance |
z-base-32 | ybndrfg8ejkmcpqxot1uwisza345h769 | आमतौर पर नहीं | अधिक readable lowercase short strings |
Standard Base32 length और padding map
RFC 4648 / Base32hex में trailing = की संख्या original byte length पर निर्भर करती है।
| इनपुट बाइट | प्रभावी Base32 अक्षर | आवश्यक = padding |
|---|---|---|
| 1 | 2 | 6 |
| 2 | 4 | 4 |
| 3 | 5 | 3 |
| 4 | 7 | 1 |
| 5 | 8 | 0 |
Authoritative References
- IETFRFC 4648 - The Base16, Base32, and Base64 Data Encodings
- crockford.comDouglas Crockford - Base32 Encoding
- philzimmermann.comPhil Zimmermann - z-base-32
- WikipediaWikipedia - Base32
- सेफ स्ट्रिंग कंपैरिजन
- बाइनरी रूपांतरण
- सीज़र सिफर
- मोर्स कोड
- हेक्साडेसिमल
- Base64 to Video
- इमेज से Base64
- Base64 से इमेज
- टेक्स्ट से Base64
- Base64 से टेक्स्ट
- फ़ाइल हैश जाँचकर्ता
- फ़ाइल से Base64
- Base64 से फ़ाइल
- ऑडियो को Base64 में बदलें
- Base64 से ऑडियो
- AES एन्क्रिप्ट और डिक्रिप्ट
- DES एन्क्रिप्शन डिक्रिप्शन
- Base32 एन्कोडर डिकोडर
- Base58 एन्कोडिंग और डिकोडिंग
- Base64 एन्कोड
- Base64 डिकोड
- Base64 तुलनाकर्ता
- Base64 स्प्लिट
- Base64 बहु-पंक्ति विलय
- Base64 फ़ॉर्मेटिंग
- Base64 फ़ॉर्मेट वैलिडेशन
- Base64 बैच एन्कोडिंग
- Base64 बैच डिकोड
- Base64 क्लीनर
- Base64 पैडिंग टूल
- Base64 लंबई स्टैटिस्टिक्स
- Base64 से Hex
- Base64 DataURL कन्वर्टर
- Base64-Hex कनवर्टर
- Base85 कोडेक
- HMAC जनरेशन और वेरिफिकेशन
- PBKDF2 की डेरिवेशन
- MD5 हैश
- SHA-256 हैश
- SHA1 हैश
- SHA512 हैश
- JWT टूल
- HTML एन्टिटी एन्कोड और डिकोड
- Unicode एस्केप
- URL एन्कोडिंग
- Base64 URL Safe
- MIME Base64
- जावा ऑबफस्केशन
- JS ऑब्फस्केट
- PHP ऑब्फस्केट
- Python ऑब्फस्केट
- वीडियो से Base64 कनवर्टर