How-to
Convert confidential spreadsheets to JSON locally
A payroll workbook, customer list, or supplier register often contains names, addresses, and financial amounts that should never be sent to a remote conversion server. You can handle the entire workflow on your device through two client-side steps. The Spreadsheet Converter reads your XLSX file locally to extract clean CSV text for each sheet. You then paste that data into the Data Converter to generate structured JSON without exposing confidential records.
Step by step
- Open Spreadsheet Converter and add one `.xlsx` file, up to 50 MB. Keep Output format on Auto to extract `.csv` per worksheet (for inspection or Data Converter), or pick JSON directly from the Output format menu; you can also choose a delimiter and formatting options. When the workbook contains several worksheets, CSV mode exports every readable sheet as its own download and includes the sheet name in each filename. It does not accept legacy `.xls` files, so save those as `.xlsx` in a trusted desktop spreadsheet application first.
- Download the CSV for the worksheet you need and open it in a local text editor. Confirm that row one contains unique, non-empty column names because Data Converter always treats the first CSV row as JSON keys. Check a few date, identifier, formula and blank cells against the original workbook. Spreadsheet Converter exports values only: it does not carry styles, number formats, merged-cell structure or formula text into CSV.
- Open Data Converter, select CSV as the source and JSON as the target, then paste the chosen CSV into the input pane. Press Convert. The CSV created in step 1 uses commas and quotes fields when a value contains a comma, quote or line break, so it matches this parser. Data Converter accepts up to 2 MB of text and creates an array of objects, one object per data row.

- Inspect the JSON before importing it anywhere. Confirm the object keys, row count and a sample from every sensitive column. Empty CSV cells become empty strings, not null, and there is no switch to omit them. Exact plain numbers and lowercase true or false values may become JSON numbers or booleans; identifiers such as 007 stay strings. Copy the result into your destination or save it as a `.json` file in a local text editor. Keep the source workbook unchanged until the destination accepts the test data.
Why the conversion has two local stages
XLSX and JSON describe data in very different ways. An XLSX workbook is an Office Open XML package containing workbook relationships, worksheet XML and often shared strings. The first tool opens that package in memory and flattens each worksheet into a rectangular CSV grid. The second tool reads one text grid, takes its first row as property names, and creates JavaScript objects that can be serialized as JSON. Splitting the job makes the boundary visible: workbook extraction happens before data-shape conversion, and you can inspect the intermediate CSV. Neither stage attaches the workbook, CSV or JSON to an upload request. Initial page code may still be fetched by the browser. To verify the file path, open developer tools, clear the Network list after the page has loaded, run both stages, and check that no Fetch/XHR request carries your rows.
| Feature | CSV / TSV Text | XLSX / XLSM Binary | JSON Schema Output |
|---|---|---|---|
| Reference | RFC 4180 In-Memory Scanner | ECMA-376 OOXML (Pure-TS XML Parser) | RFC 8259 Standard JSON |
| File size cap | ≤ 50 MB File / ≤ 2 MB Paste | ≤ 50 MB File (Spreadsheet Conv.) | Direct .json Download or Copy |
Values survive better than spreadsheet meaning
The spreadsheet reader is intentionally minimal. Plain text, numbers, booleans and empty cells can be represented in the CSV grid. A formula cell contributes its last cached result when the workbook contains one; the formula expression itself is not exported. Styles, currency symbols supplied only by number formatting, cell colours, comments, charts, named ranges and merged-cell relationships are not part of the output. Excel dates can be stored as serial numbers plus a display format, and this converter does not interpret that format, so a date may appear as a raw number. This is why a spot check against the workbook is necessary. If the destination needs formula lineage, displayed currency, merged headings or reliable date types, this two-tool route is not sufficient. Prepare a plain values sheet in a spreadsheet application before converting.
| Feature | UTF-8 BOM (0xEF, 0xBB, 0xBF) | Excel Date Serial (e.g. 45280) | BigInt 64-bit ID Truncation |
|---|---|---|---|
| Reference | Leading \\uFEFF Corrupts First Header | Days since 1899-12-30 (1900 Leap Bug) | > 2^53 - 1 (9007199254740991) |
| Processing mode | Strip BOM: str.replace(/^\\uFEFF/, "") | Date((serial - 25569) * 86400 * 1000) | Parse as String (Regex / Quote IDs) |
The first row defines the JSON keys
Data Converter does not offer a header-row selector. Whatever appears in the first CSV row becomes the property name for every object below it. Move report titles and notes out of the way in a local workbook copy so the actual column labels occupy row one. Give every column a unique, non-empty label such as employee_id, gross_pay and period_end. Duplicate labels are unsafe because an object cannot preserve two different values under the same property name; a later value can replace an earlier one. Empty labels produce empty-string keys that are legal JSON but difficult for another system to map. Also check ragged rows. A missing cell is represented as an empty string for that header, while values beyond the header width have no property to attach to. A clean rectangular source table avoids those surprises.
CSV quoting, delimiters and type coercion
CSV can safely carry commas, quotes and line breaks when the writer quotes the field and doubles any quote inside it. Spreadsheet Converter follows that pattern and writes comma-separated CSV by default, so its output is the reliable handoff for Data Converter. If you paste CSV into Data Converter instead of exporting JSON directly from Spreadsheet Converter, match its CSV delimiter setting (comma, semicolon, tab, or pipe) to your file so columns split accurately. The JSON stage also performs conservative type coercion. The exact strings true and false become booleans, and a plain numeric spelling becomes a number only when converting it to a JavaScript number and back produces the same text. That keeps 007, 1e3 and 1.20 as strings, which protects many IDs, codes and formatted values, but you still need to compare the result with the destination schema.
The tools used in this guide
- Spreadsheet ConverterConvert XLSX to CSV, TSV, JSON or Markdown, and CSV/TSV/JSON to XLSX. Includes delimiter control, UTF-8 BOM, grid cleaning, and sheet merging.
- Data ConverterConvert data between JSON, YAML and CSV, or export arrays of objects to Markdown tables and SQL INSERT queries.
- JSON to TypeScript / Zod / Go / RustGenerate TypeScript interfaces, Zod schemas, JSON Schema, Go structs, Rust Serde, and Python Pydantic models from JSON.
Inspect each worksheet before converting its CSV to JSON
An XLSX workbook can export more than the sheet currently visible in your spreadsheet application. Our synthetic workbook has a Visible sheet and a Hidden sheet containing INTERNAL NOTE. Spreadsheet Converter produces two CSV downloads, including the hidden sheet. Inspect the full download list and each file before choosing the CSV that belongs in your JSON result.
The Visible CSV contains id,value followed by 00123,7 and 123,45292. The first identifier was stored as text; the second was a number displayed with a five-digit format in the workbook. That display format is not reconstructed. The date-like cell exports its stored serial value 45292. A formula cell deliberately contains a stale cached value of 7 for the expression 2+2: the converter exports 7 and does not recalculate it. Passing this CSV through Data Converter keeps "00123" as a string and converts the other numeric-looking values to numbers.
Recalculate and save the original workbook in a trusted spreadsheet application when formula results matter. Compare identifiers, date conventions, units and row counts for every selected sheet. A hidden sheet is not an access-control boundary, a cached value is not a freshly calculated result, and a successful JSON parse does not validate the business meaning of the data.
Frequently asked questions
Does this work with multiple worksheets?
Yes, but there is no sheet picker. An XLSX workbook produces one CSV output for every readable worksheet. Download the CSV whose filename contains the sheet name, then paste only that file into Data Converter. Each CSV becomes a separate JSON array unless you combine the results yourself after conversion.
Are formulas exported as formulas or values?
Formula text is not exported. When the XLSX stores a cached result for a formula cell, that value can appear in the CSV. A missing or stale cached result can therefore produce missing or stale data. Recalculate and save the workbook in a spreadsheet application before conversion, then compare important totals with the original.
Can blank cells become null or be omitted?
Not with the current controls. A blank CSV cell becomes an empty string under its header, and every header is included. There is no null-versus-omit setting. If the receiving system requires null or missing properties, transform the copied JSON in a trusted local editor or script and validate the result before import.
How can I confirm the workbook was not uploaded?
Load the pages, open the browser's Network panel, clear the list, and perform both conversions. No Fetch/XHR request should contain the workbook, CSV or pasted rows. Requests for page assets are not file uploads. The spreadsheet is read through the browser File API, and the second stage parses text already in the page. Do not paste the result into a third-party destination until you have reviewed that destination's own data policy.