Base64 Converter
Base64 Converter
About the Base64 to XLSX Converter
Base64 is an encoding that represents arbitrary binary data using only 64 safe text characters (A–Z, a–z, 0–9, + and /, with = as padding). Every 3 bytes of input become 4 characters of output, so Base64 text is about 33% larger than the original file — the price paid for being able to embed binary content in JSON, XML, email or HTML, which only carry text safely.
Excel workbooks are a favourite export format for reporting APIs, finance systems and admin dashboards, and when those exports are delivered through an API or stored in a database they are usually Base64-encoded. Like DOCX, an .xlsx file is a ZIP archive of XML parts. This tool decodes the Base64 string and gives you back the workbook to open in Excel, LibreOffice Calc or Google Sheets.
Common uses
- Verifying a generated report before it is emailed to customers.
- Downloading a spreadsheet attachment that arrives inside a JSON or SOAP response.
- Debugging an export job that writes workbooks to a queue or database.
- Inspecting spreadsheets attached to webhooks from third-party services.
How to use it
- Paste the Base64-encoded workbook into the input box.
- Select XLSX as the format and press Convert.
- Click Save File to download
output.xlsx.
Example
XLSX files are ZIP containers, so their Base64 starts with UEsDB — the same as DOCX:
UEsDBBQABgAIAAAAIQBi7p1oXgEAAJAEAAATAAgC...
PK.. (ZIP container)
→ downloaded as output.xlsx
Tips and common pitfalls
- Older
.xlsfiles (Excel 97–2003) start with0M8R4KGxin Base64 and need a.xlsextension. - If you only need the raw data, ask the API for CSV instead — it is smaller and can be read in the Delimited Text Viewer.
- Excel may show a "file format or extension is not valid" warning if you saved a different file type with the
.xlsxextension. - Large workbooks produce very long Base64 strings; make sure your clipboard or log viewer did not truncate the value.
Frequently asked questions
Can I convert the spreadsheet to CSV or JSON here?
Download and open the workbook, export the sheet as CSV, then use the CSV ↔ JSON Converter if you need JSON.
What about .xlsm files with macros?
Macro-enabled workbooks are also ZIP containers. The decoded bytes are identical; just rename the file to .xlsm after downloading.
Why does decoding fail with "not a valid Base-64 string"?
Usually because the input contains something other than pure Base64: a data:...;base64, prefix, surrounding quotes from a JSON value, or URL-safe characters (- and _ instead of + and /). Remove the prefix and quotes, and convert URL-safe characters back, then try again.
Is Base64 a form of encryption?
No. Base64 is an encoding, not encryption — anyone can decode it instantly and no key is involved. Never rely on Base64 to hide passwords, tokens or personal data.