Base64 प्रारूप से एनकोड करें


अपना पाठ नीचे दिए गए फ़ील्ड में चिपकाएं
अक्षर सेट
फ़ाइल को खींचें और छोड़ें या अपलोड करने के लिए + पर क्लिक करें
अक्षर सेट
Base64 decode

फ़ाइल को यहाँ अपलोड करें या खींचें और छोड़ें

Base64 Decode
 फ़ाइल को खींचें और छोड़ें या अपलोड करने के लिए + पर क्लिक करें
All fields marked with an asterisk (*) cannot be left blank.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Base64 Decode Base64 Decode Base64 Decode

Base64 एनकोड करें

Base64 एन्कोडिंग एक ऐसी विधि है जो बाइनरी डेटा—जैसे चित्र, फ़ाइलें, या सादा पाठ—को ASCII स्ट्रिंग प्रारूप में बदलने के लिए उपयोग की जाती है। यह आमतौर पर वेब विकास, ईमेल स्वरूपण और ऐसे डेटा ट्रांसमिशन में उपयोग होता है जहां केवल टेक्स्ट-सुरक्षित अक्षरों की अनुमति होती है। डेटा को Base64 प्रतिनिधित्व में परिवर्तित करने से यह सुनिश्चित होता है कि यह ऐसे सिस्टमों में परिवहन के दौरान अपरिवर्तित रहता है जो बाइनरी प्रारूप का समर्थन नहीं करते।

Base64 प्रारूप में एनकोड करें

Base64 एन्कोडर आपको चित्र, PDF या दस्तावेज़ जैसी फ़ाइलों को हमारे ऑनलाइन टूल का उपयोग करके Base64 प्रारूप में अपलोड और कनवर्ट करने की अनुमति देता है। Base64 एन्कोडिंग विशेष रूप से ईमेल अटैचमेंट, वेब-आधारित संसाधन और क्रिप्टोग्राफ़िक डेटा को सीधे HTML, CSS, या JSON में एम्बेड करने के लिए उपयोगी है।

सटीकता और दक्षता सुनिश्चित करता है

चाहे आप विकास, भंडारण या सुरक्षा उद्देश्यों के लिए Base64 एन्कोड फ़ाइलों की आवश्यकता रखते हों, यह टूल सटीकता और दक्षता सुनिश्चित करता है।

इस Base64 एनकोडर टूल का उपयोग कैसे करें

Paste your text within the field below
Character Set
Drag and drop the file or click + to upload
Character Set
Base64 decode

Upload or drag
and drop file here

Base64 Decode
Drop Files or Click the + above to add Files.
All fields marked with an asterisk (*) cannot be left blank.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
1
Base64 प्रारूप में एनकोड करें
अपनी मूल स्ट्रिंग कॉपी-पेस्ट करें या कोई फ़ाइल खींचकर यहां छोड़ें।
2
 एन्कोडिंग प्रकार बदलें
एन्कोडिंग प्रारूप और लाइन ब्रेक समायोजित करें।
3
एनकोड करने के लिए यहां क्लिक करें
 डेटा को उसके मूल प्रारूप में बदलने के लिए ‘एनकोड’ पर क्लिक करें।
4
आउटपुट कॉपी करें
 अपना एनकोडेड आउटपुट यहां प्राप्त करें।
Base64 Decode Base64 DecodeBase64 Decode

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

Base64 Decode
ईमेल अटैचमेंट
(MIME प्रारूप) – ईमेल सिस्टम फ़ाइलों को Base64 में एन्कोड करते हैं ताकि उचित ट्रांसमिशन और डिस्प्ले सुनिश्चित किया जा सके। यह संयोजन डेटा को पारगमन के दौरान ईमेल जैसे सिस्टमों में परिवर्तित होने से बचाता है, जो परंपरागत रूप से 8-बिट साफ नहीं होते थे। वेब डेवलपर Base64 एन्कोडिंग का उपयोग करके छवियों और मीडिया को सीधे HTML या CSS फ़ाइलों में एम्बेड करते हैं।
Base64 Decode
क्रिप्टोग्राफ़िक अनुप्रयोग
Base64 एन्कोडिंग स्कीम्स हैश किए गए पासवर्ड, डिजिटल हस्ताक्षर और सुरक्षित कुंजियों को Base64 प्रारूप में संग्रहीत करने में मदद करती हैं। यह सुरक्षित फ़ाइल ट्रांसफर के लिए भी उपयोगी है। कई सिस्टम संवेदनशील फ़ाइलों को ट्रांसमिशन से पहले Base64 में एन्कोड करते हैं ताकि उनकी अखंडता बनी रहे।
Base64 Decode
 एन्कोडेड डेटा यथावत रहता है
URL-सुरक्षित एन्कोडिंग में, + को - में और / को _ में बदला जाता है ताकि URL में समस्याएं न आएं। साथ ही, स्पेस और विशेष अक्षरों को %20 के रूप में एन्कोड किया जाता है ताकि वेब लिंक में बेहतर संगतता सुनिश्चित की जा सके। यह यह भी सुनिश्चित करता है कि लिंक, एपीआई और अन्य वेब आधारित वातावरणों में उपयोग किए जाने पर एन्कोडेड डेटा सुरक्षित रहे।
Base64 Decode
 मुद्रण योग्य अक्षर
Base64 बाइनरी डेटा को प्रदर्शित करने के लिए मुद्रण योग्य वर्णों का एक सेट उपयोग करता है, लेकिन वेब विकास में कुछ वर्णों को विशेष तरीके से संभालने की आवश्यकता होती है। मानक वर्णों में पहले 62 के लिए A-Z, a-z, 0-9 और एन्कोडिंग के लिए +, / का उपयोग होता है।

Base64 एनकोड कार्यप्रणालियाँ

अधिकांश प्रोग्रामिंग भाषाओं में Base64 एन्कोडिंग को मूल रूप से या लाइब्रेरी के माध्यम से समर्थन प्राप्त है। इसे सामान्यतः इस प्रकार लागू किया जाता है:

JavaScript
// JavaScript

//The atob() function encode strings to Base64 in web applications.

const encodedString = atob("Some encoded string");
console.log(encodedString); // Output: U29tZSBlbmNvZGVkIHN0cmluZw==
Base64 Decode
# Python
# The base64.b64decode() function converts Base64 text into its original binary format.
import base64
original_str = "Some encoded string"
encoded_bytes= base64.b64encode(original_str.encode("utf-8"))
print(encoded_str)  # Output: U29tZSBlbmNvZGVkIHN0cmluZw==
Base64 Decode
// PHP
// The base64_decode() function allows web developers to process encoded data.
$encoded_str = "U29tZSBlbmNvZGVkIHN0cmluZw==";
$decoded_str = base64_decode($encoded_str);
echo $decoded_str; // Output: Some encoded string
Base64 Decode
// Java
// The Base64.getEncoder().encodeToString() method efficiently encodes text into Base64.
import java.util.Base64;
public class Main {
    public static void main(String[] args) {
        String originalStr = "Some encoded string";
        String encodedStr = Base64.getEncoder().encodeToString(originalStr.getBytes());
        System.out.println(encodedStr); // Output: U29tZSBlbmNvZGVkIHN0cmluZw==
    }
}
Base64 Decode
// C#
// The Convert.ToBase64String() method encodes binary data into a Base64 string.
using System;
class Program{
   static void Main()
   {
       string original = "string"; // Original string to encode
       byte[] bytes = System.Text.Encoding.UTF8.GetBytes(original); // Convert string to bytes
       string encoded = Convert.ToBase64String(bytes); // Encode bytes to Base64
       Console.WriteLine(encoded); // Output: c3RyaW5n
   }
}
Base64 Decode
# Ruby
# The Base64.encode64() method encodes a string into Base64 format.
require 'base64'original = 'string'  # Original string to encode
encoded = Base64.encode64(original)  # Encode string to Base64
puts encoded  # Output: c3RyaW5n
Base64 Decode
-- MySQL
-- The TO_BASE64() function encodes a string into Base64 format.
SELECT TO_BASE64('string') AS encoded; -- Output: c3RyaW5n
Base64 Decode
-- PostgreSQL
-- The encode() function encodes binary data using the specified format, like 'base64'.
SELECT encode('string'::bytea, 'base64') AS encoded; -- Output: c3RyaW5n
Base64 Decode
# Linux CLI
# The base64 command encodes input into Base64 format.
# The -n flag prevents echo from adding a newline character.
echo -n 'string' | base64  # Output: c3RyaW5n
Base64 Decode
Base64 Decode Base64 DecodeBase64 Decode