Base64 को वापस फ़ाइल में कैसे बदलें
- चुनें
- पेस्ट करें
- सहेजें
An API result or an email contains a long string of letters and digits (Base64) that seems to be an image or PDF. "Base64 → file" in Convert Files and Base64 can turn it back into the original file.
चरण
- For "Direction", choose "Base64 → file".
- Paste the string into "Base64 text".
- Enter the "File name to save", with an extension (for example image.png, document.pdf).
- Press "Save as file" to save.
- Open the saved file and check it.
Deciding the extension
The Base64 text alone doesn't tell the original file type. Judge from clues like these.
- In data URL form, the type is written at the start, like "data:image/png;base64,"
- The first characters can give a hint (PNG images often start with "iVBOR", PDFs with "JVBER", JPEG images with "/9j/")
- It is stated in the source's documentation (such as the API specification)
For data URLs
A string with a leading part like "data:image/png;base64," can be pasted as it is. Or paste only the characters after the comma, excluding the leading part.
सहेजने के बाद जाँच
- For an image, open in the gallery or an image viewer
- For a PDF, open in a PDF viewer
- If it won't open, the extension may be wrong
इनके लिए अच्छा
- Checking data received from an API as a file
- Extracting embedded data from an email
- Checking test data during development
उदाहरण
An API response contained a long Base64 string. Pasted it into "Base64 → file", named the file "result.pdf" and saved. It opened as a PDF.
Common stumbling blocks
- The text is cut off: the copy was incomplete. Copy the whole thing again.
- Line breaks or spaces are mixed in: remove them before pasting.
- Told the file is corrupted: the extension is wrong, or data is missing.
Frequently asked questions
Can long strings be pasted?
Yes. But very long ones take time.
सारांश
Paste and save with a file name that has an extension. Judge the type from the first characters or documentation.
“फ़ाइलें और Base64 बदलें” इस्तेमाल करें (मुफ़्त)इसके साथ काम आने वाले टूल
- फ़ाइल का हैश (SHA-256) जाँचें: फ़ाइल का हैश निकालें और उसकी तुलना करें।
- CSV और JSON बदलें: CSV और JSON के बीच तुरंत बदलें।
- ZIP फ़ाइल बनाएँ: कई फ़ाइलों को एक ZIP में पैक करें।
अगर यह गाइड काम आया हो, तो एक छोटी टिप हमारे लिए बहुत मायने रखेगी।
टिप भेजें (¥300)उपहार भेजें (Amazon विशलिस्ट)