Turn a CSV export into JSON without breaking the values
LOCALA CSV file looks simple until a product name contains a comma, a German Excel exports semicolons, or the first header arrives with an invisible byte-order mark. This converter parses the file properly: quoted cells, doubled quotes and line breaks inside a field all survive, the delimiter can be detected or chosen, and the header row becomes the keys of each object. Values stay as text on purpose, so a postcode like 01234 does not lose its leading zero. Everything runs in the page and nothing is uploaded.
How it works
- 01
Paste the CSV or load a file
Drop the raw text into the box or load a .csv from your device. If the file was saved by Excel, the first bytes may contain a byte-order mark; it is removed automatically so the first column is called id rather than an invisible character followed by id.
- 02
Check the delimiter
Auto detection looks at the first line and counts commas, semicolons, tabs and pipes outside quotes, then picks the most frequent one. European Excel often writes semicolons because the comma is the decimal separator. If the preview shows one wide column, the wrong delimiter was chosen; pick it manually instead of editing the file.
- 03
Decide how the header works
With the header option on, the first non-empty row becomes the keys and every later row becomes an object. Turn it off to get an array of arrays, which is what you want when the file has no header or when the header is data. Trim spaces removes padding that spreadsheet exports often add around cells.
- 04
Copy or download the JSON
The output is formatted with two-space indentation so it can be read and diffed. Copy it into an editor or download a .json file. Before using it, check a row that contains a comma or a line break inside a cell: if the quotes were correct in the source, the value arrives whole.
When to use it
Feeding an import script
An internal admin panel expects JSON while the person who prepares the data works in Excel. The export is converted in the browser, the JSON is pasted into the import endpoint, and no customer row is uploaded to a third-party converter.
Inspecting a suspicious export
A dashboard says there are 1,024 rows but the file has 1,026 lines. Converting to JSON with the header option on shows exactly which rows are empty or duplicated, because each row becomes an object you can compare field by field.
Keeping identifiers as text
Product codes, phone numbers and postcodes often start with zero. Converting them through a tool that guesses types turns 01234 into 1234. Here every cell stays a string, so the JSON keeps the exact characters that were in the spreadsheet.
Moving data between tools
A legacy report exports semicolon-separated text with quoted fields that contain commas. Rather than reaching for a script, load the file, confirm the delimiter and copy the JSON into a config file or a test fixture.
Questions
Why does my file import as a single column?
The delimiter does not match. Excel in a European locale writes semicolons, while many tools assume commas. Auto detection usually catches it, but a file with commas inside quoted addresses can confuse the count; choose semicolon manually and check the preview again.
Are numbers converted to JSON numbers?
No. Every value is kept as a string. That is deliberate: converting would drop leading zeros in postcodes, round long IDs and turn an empty cell into null instead of an empty string. Convert specific fields to numbers after the import, when you know which ones are safe.
What happens to duplicate header names?
A second column with the same name gets a numeric suffix, so id, id_2, id_3. Without that step, later columns would silently overwrite earlier ones in a JSON object. If the duplicates are a mistake in the source, fix the header row and convert again.
How are rows with too many or too few cells handled?
Missing cells are filled with an empty string and extra cells are dropped, so every object keeps the same keys as the header. A ragged row is a sign that a quote or a delimiter is wrong, so check the original line before relying on the output.
Can it convert JSON back to CSV?
No, this tool only reads CSV. The reverse direction has its own problems, such as nested objects and arrays that have no obvious column, and pretending otherwise produces a table that loses structure. Use a dedicated JSON-to-CSV step when you need it.
Does it keep dates and decimal commas intact?
Dates stay exactly as written, which is intentional: 03/04/2025 means March 4 in one country and April 3 in another, and the file itself does not say which. Decimal commas also stay inside the string, so parse them with the locale you know the export came from.
Is there a size limit?
There is no fixed limit, but the whole file is held in memory and the formatted JSON can be several times larger than the CSV. On a phone, a file above roughly 20 MB can make the tab sluggish. For very large exports, split the file or process it with a script.
Is my data uploaded anywhere?
No. Parsing, formatting and downloading all happen in the page with local JavaScript. There is no request carrying the file, no storage bucket and no history. You can watch the Network panel while converting; nothing leaves the tab.