Skip to content
Base64 एनकोड / डिकोड
Tools

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

एक क्लिक में टेक्स्ट और फ़ाइलें Base64 में और से बदलें।

0 bytes
0 bytes

Files & images

Runs entirely in your browser. Nothing is uploaded.

एक पूरा Base64 toolkit जो आपके browser से बाहर कभी नहीं जाता

Base64 binary data को plain ASCII text में बदल देता है ताकि वह text-only systems से safely गुज़र सके — email body, JSON payload, URL, HTML और CSS। यह tool text और files दोनों के लिए Base64 encode और decode करता है, और ज़्यादातर popular Base64 websites के विपरीत यह पूरी तरह आपके device पर चलता है। आप जो भी paste या drop करते हैं वह कभी upload नहीं होता — जो तब ज़रूरी है जब data एक access token, API key, या कुछ और हो जो आप किसी third-party server को देना नहीं चाहते।

यह उन cases को handle करने के लिए बनाया गया है जहाँ simpler tools गलती करते हैं: पूरा Unicode (emoji और non-Latin scripts सहित), URL-safe Base64URL, MIME और PEM line wrapping, और उस text को decode करना जो originally किसी non-UTF-8 character set में encode था।

कुछ भी decode करें — charset control और forgiving parser के साथ

Paste किया गया Base64 अक्सर messy होता है: email wrapping से line breaks आ जाती हैं, terminal में trailing = padding खो जाती है, या वह पूरी data: URI के रूप में आता है। Decoder यह सब automatically ठीक कर देता है — whitespace हटाता है, URL-safe characters accept करता है, padding restore करता है, और data URIs unwrap करता है — और अगर कुछ genuinely invalid है तो यह silently fail करने की बजाय exact character और position बताता है।

क्योंकि Base64 raw bytes store करता है बिना character-set label के, decoded text garbled दिख सकता है जब वह originally UTF-8 में नहीं था। Decode as selector आपको उन्हीं bytes को UTF-16, Latin-1, Windows-1252, ASCII, Shift_JIS, या GBK के रूप में reinterpret करने देता है। Binary payloads debug करते समय raw bytes directly inspect करने के लिए Hex view पर switch करें।

Files और images, preview और ready-to-paste snippets के साथ

कोई file drop करें, browse करने के लिए click करें, या simply clipboard से image paste करें। Images inline preview होती हैं, और tool magic bytes से file type detect करता है — इसलिए एक decoded blob सही तरह PNG, JPEG, GIF, WebP, PDF आदि पहचाना जाता है और सही extension के साथ download होता है।

Assets embed करने के लिए, कोई image encode करें और एक ready-made data URI, CSS background-image rule, <img> tag, या favicon <link> copy करें — string manually बनाने की ज़रूरत नहीं। यह exactly वही है जो developers को चाहिए जब favicons, email logos, या icon sprites को single-file page में inline करना हो।

यह दूसरे free Base64 tools से बेहतर क्यों है

बहुत से free Base64 tools — जिनमें base64decode.org और base64encode.org जैसी popular sites शामिल हैं — आपका input server-side process करती हैं। इसका मतलब है आपके JWT tokens, API keys, और private file contents एक remote server पर transmit होते हैं जिस पर आपका कोई control नहीं। UtiloKit का Base64 tool 100% JavaScript में आपके browser में चलता है। Page load होने के बाद आप internet से disconnect भी कर सकते हैं और यह perfectly काम करता रहेगा।

CyberChef excellent है लेकिन simple encoding tasks के लिए steep learning curve है। base64.guru text अच्छे से handle करता है लेकिन files उनके servers पर upload करता है। TinyWow free users पर daily limits लगाता है। UtiloKit email compatibility के लिए MIME line-wrapping, certificates के लिए PEM formatting, international text के लिए charset-aware decoding, JWT और OAuth tokens के लिए URL-safe Base64URL support, और decoded binaries के लिए file type detection — सब कुछ free, unlimited, और private।

iPhone, Android और हर device पर काम करता है — कोई app नहीं चाहिए

यह Base64 encoder और decoder पूरी तरह responsive है और modern browser वाले हर device पर काम करता है। iPhone और Android पर आप directly clipboard से text paste कर सकते हैं, Files app या camera roll से files pick कर सकते हैं, और encode या decode result download कर सकते हैं — बिना कुछ install किए। Interface 375px width और उससे ऊपर छोटी screens के लिए optimised है।

क्योंकि tool load होने के बाद पूरी तरह offline चलता है (no server calls, no dependencies), यह उन situations में भी काम करता रहता है जहाँ base64decode.org या CyberChef जैसे web-based tools struggle कर सकते हैं — VPN के अंदर, loading के बाद airplane mode में, या restricted network access वाले device पर। Mobile पर developers JWT payloads decode कर सकते हैं, iOS पर engineers data URIs inspect कर सकते हैं, और कोई भी बिना desktop machine के CSS में images embed कर सकता है।

Frequently asked questions

Base64 क्या है और इसका उपयोग किस लिए होता है?

Base64 एक encoding scheme है जो binary data — files, images, या कोई भी bytes — को केवल 64 printable ASCII characters (A–Z, a–z, 0–9, +, /) का उपयोग करके represent करती है। इसका उपयोग binary को text-only channels से safely भेजने के लिए होता है: HTML, CSS, या email में images embed करना, JSON या XML के अंदर binary store करना, JWT header और payload segments encode करना, और query strings में values pass करना। यह उन systems की समस्या हल करता है जो raw bytes को strip, alter या corrupt कर देते हैं — Base64 सब कुछ plain ASCII text में convert करता है जो transport में unchanged survive करता है।

क्या Base64 encryption है — क्या यह secure है?

नहीं। Base64 encoding है, encryption या hashing नहीं — इसमें कोई key नहीं होती और कोई भी इसे किसी भी Base64 decoder से instantly decode कर सकता है, इस tool सहित। यह zero confidentiality provide करता है और इसे कभी भी passwords, API keys, या private data protect करने के लिए उपयोग नहीं करना चाहिए। Base64 एक transport encoding है, security measure नहीं। अगर आपको sensitive data protect करना है, तो पहले उसे encrypt करें (AES, RSA, आदि) और तभी optionally safe transport के लिए ciphertext को Base64-encode करें — लेकिन protection encryption कर रही है, encoding नहीं।

क्या यह Base64 encoder और decoder free है?

हाँ, पूरी तरह free — कोई sign-up नहीं, text length या file size की कोई limit नहीं। TinyWow free users को कुछ ही daily conversions तक restrict करता है, Smallpdf प्रति दिन 2 tasks तक सीमित करता है, और कई sites में full features unlock करने के लिए account चाहिए। UtiloKit के Base64 tool में कोई daily limits नहीं, कोई account requirement नहीं, और कोई paywall नहीं — यह हर encoding और decoding operation के लिए free है। न email address, न credit card, कुछ नहीं।

क्या यहाँ sensitive data encode करना safe है?

हाँ। सब कुछ आपके browser में process होता है — text, files, और images कभी server पर upload नहीं होते — इसलिए tokens या credentials जैसा sensitive content भी आपके device पर ही रहता है। कई popular Base64 sites आपका input अपने servers पर upload करती हैं; यह कभी नहीं करता। आप इसे offline encode करके verify कर सकते हैं: यह तब भी काम करता है।

Base64 के अंत में एक या दो = signs क्यों होते हैं?

= characters padding हैं। Base64 input को 3-byte groups में encode करता है जो प्रत्येक 4 characters बनती हैं; जब final group छोटी होती है, तो = signs output को 4 के multiple तक pad करते हैं। एक = का मतलब last group में 2 bytes थे, दो = का मतलब उसमें 1 byte था। Padding में कोई data नहीं होता, इसलिए यह tool decode करते समय missing = automatically restore कर देता है।

Base64 में कौन से characters allowed हैं?

Standard Base64 A–Z, a–z, 0–9, plus symbols + और /, और padding के लिए = — कुल 65 characters — का उपयोग करता है। इसके अलावा कुछ भी (spaces, line breaks, other punctuation) alphabet का part नहीं है। URL-safe variant + और / को - और _ से replace करता है। यह decoder फिर भी whitespace, newlines, और URL-safe characters tolerate करता है और बताता है कि कौन सा character वह accept नहीं कर सकता और string में उसकी exact position क्या है।

Base64 के नुकसान क्या हैं?

Base64 data को roughly 33% बड़ा बना देता है क्योंकि हर 3 bytes 4 characters बन जाती हैं — यह overhead HTTP responses, HTML files, या CSS bundles में जल्दी बढ़ जाता है जहाँ payload size performance को affect करता है। यह human-readable नहीं है, जिससे source में Base64 strings होने पर code reviews और debugging मुश्किल हो जाती है। यह कोई error detection या checksumming provide नहीं करता, इसलिए एक corrupted character silently गलत output देता है। और यह zero confidentiality offer करता है — जो भी string देखे वह seconds में decode कर सकता है। यह binary को text-only channels से move करने का सही choice है, लेकिन यह compression नहीं है और security नहीं है। बड़े payloads के लिए, proper Content-Type headers के साथ binary transfers उपयोग करें।

क्या Base64 और UTF-8 एक ही हैं?

नहीं — ये पूरी तरह अलग-अलग problems solve करते हैं। UTF-8 एक character encoding है जो human-readable text (letters, emoji, symbols) को bytes में convert करती है। Base64 फिर किसी भी bytes को — UTF-8 bytes सहित — plain ASCII characters में convert करता है जो text-only transport के लिए safe हैं। दोनों एक साथ layer होते हैं: Unicode string को Base64-encode करने के लिए पहले उसे UTF-8 bytes में convert करें, फिर उन bytes को Base64 में encode करें। UTF-8 step skip करना naive Base64 tools में सबसे common bug है — वे JavaScript के internal UTF-16 representation पर operate करते हैं, जो basic ASCII से बाहर किसी भी चीज़ के लिए garbled output produce करता है। यह tool हमेशा पहले UTF-8 में convert करता है, इसलिए emoji और हर non-Latin script correctly encode और decode होती है।

क्या Base64 कोई programming या coding language है?

नहीं। Base64 एक data-encoding scheme है, programming या markup language नहीं — इसमें कुछ run, compile या interpret नहीं करना होता। यह simply एक reversible algorithm है जो arbitrary binary data को 64 printable ASCII characters के fixed set में और वापस convert करता है। आप इसे किसी भी language (JavaScript, Python, Go, Java, आदि) में लिखे programs के अंदर transformation step के रूप में उपयोग करते हैं लेकिन Base64 खुद एक language नहीं है। इसे hexadecimal notation की तरह सोचें — एक representation format, language नहीं।

Base64URL क्या है और इसे कब उपयोग करना चाहिए?

Base64URL एक URL- और filename-safe variant है जो + character को - से और / character को _ से replace करता है, और = padding characters पूरी तरह drop कर देता है। यह इसलिए ज़रूरी है क्योंकि standard + और / URLs में special meaning रखते हैं — browsers और servers उन्हें misinterpret या percent-encode कर देते। JWT header और payload segments, OAuth tokens, query-string parameters, और file names के लिए Base64URL उपयोग करें जहाँ आप safe, readable string चाहते हों। इस tool में URL-safe mode toggle करें और यह standard Base64 और URL-safe Base64URL दोनों automatically encode और decode करता है, किसी भी तरह की padding handle करते हुए।

क्या मैं files और images को Base64 में convert कर सकता/सकती हूँ?

हाँ। कोई भी file या image drop करें या paste करें और उसकी Base64 string या data URI पाएं, image types के लिए inline preview के साथ। Tool CSS background-image rules, HTML img src attributes, और favicon link tags के लिए ready-to-paste snippets generate करता है, ताकि आपको data URI string manually बनाने की ज़रूरत न हो। Decode mode में यह data URI prefix से MIME type पढ़ता है या raw bytes (magic bytes) से file type detect करता है, images inline preview करता है, और सही extension restored होने के साथ original file download करने देता है। PNG, JPG, SVG, WebP, GIF, PDF, और अधिक के साथ काम करता है।

क्या यह Unicode और emoji सही तरह handle करता है?

हाँ। Encoding UTF-8 using Unicode-safe है, इसलिए accented characters, Arabic, Chinese, Japanese, Korean, और emoji सब corruption के बिना correctly round-trip करते हैं। यह naive Base64 tools में सबसे common failure है: वे proper UTF-8 bytes में convert करने की बजाय JavaScript के internal UTF-16 string representation पर operate करते हैं, जो basic ASCII से बाहर किसी भी चीज़ के लिए garbled output produce करता है। यह tool पहले UTF-8 में convert करता है, इसलिए हर character script या language की परवाह किए बिना accurately encode और decode होता है।

मेरा decoded text garbled दिख रहा है — क्या मैं इसे ठीक कर सकता/सकती हूँ?

हाँ। Base64 कोई charset information carry नहीं करता, इसलिए जो text originally non-UTF-8 charset में encode था वह UTF-8 के रूप में decode होने पर garbled दिख सकता है। 'Decode as' selector उपयोग करें उन्हीं bytes को UTF-16 (दोनों big-endian और little-endian), Latin-1 (ISO-8859-1), Windows-1252, ASCII, Shift_JIS (Japanese), या GBK (Simplified Chinese) के रूप में reinterpret करने के लिए जब तक text सही न पढ़े। यह उन Base64 strings के लिए सबसे ज़रूरी है जो पुराने systems, email clients, या East Asian software में originated थीं जो UTF-8 की बजाय regional encoding default करती हैं।

मेरा Base64 decode क्यों नहीं हो रहा — invalid क्यों बता रहा है?

सबसे common causes से शुरू करें: extra whitespace या newlines (यह decoder उन्हें automatically strip करता है), URL-safe characters जैसे - और _ की बजाय + और / (यह भी automatically handle होता है), और अंत में missing = padding (automatically restored होता है)। अगर string फिर भी fail हो, तो संभवतः आपके पास Base64 alphabet से बाहर कोई character है — एक space, percent sign, Unicode character, या stray HTML entity। Decoder बताता है कि कौन सा character invalid है और string में उसकी position क्या है ताकि आप उसे locate और fix कर सकें। Source से raw string फिर से copy करें, क्योंकि copy-paste कभी-कभी invisible Unicode characters या smart quotes introduce करता है जो सही दिखते हैं लेकिन Base64 नहीं हैं।

यह TinyWow या it-tools जैसे दूसरे Base64 tools से कैसे compare करता है?

TinyWow और Smallpdf primarily PDF/image tools हैं जो files अपने servers पर upload करती हैं। it-tools.tech का Base64 tool solid है लेकिन एक self-hosted app है। यहाँ key difference यह है कि encoding और decoding पूरी तरह आपके browser में होती है — आपका data कहीं भी transmit नहीं होता। इसके अलावा, यह tool charset selection, MIME line-wrapping, file preview, और URL-safe Base64 — सब एक जगह handle करता है, बिना किसी account requirement के।