ok.OK UtilityA LITTLE EVERYDAY MAGIC

CSV Generator

Generate CSV from JSON row objects with delimiter choices and optional spreadsheet-formula protection.

Make it your own

How to use CSV Generator

Convert a JSON array of row objects into a quoted CSV, semicolon-separated or tab-separated file. The header combines the keys found across the input rows, and optional spreadsheet protection changes risky text cells.

  1. Paste a JSON array of objects representing your rows.
  2. Choose the delimiter and whether to protect against spreadsheet formulas.
  3. Select Generate, review the quoted output and download data.csv.

Example: The array [{"name":"Item A","quantity":2}] becomes a header row with name and quantity and one data row containing Item A and 2.

How it works: Columns are the union of row keys in first-seen order. Fields are quoted, embedded quotes are doubled, rows use CRLF and the file uses UTF-8 with a BOM. With spreadsheet protection on, risky text cells and headers receive an apostrophe prefix; numeric values are retained.

Understanding the result

Each JSON object becomes a row. The output uses the union of object keys as columns, quotes fields and escapes embedded quotes. Formula protection prefixes risky text cells with an apostrophe so a spreadsheet is less likely to interpret them as commands.

Input rows are JSON objects; the output columns combine their keys in first-seen order. Every field is quoted, with embedded quotation marks doubled.

A calculation you can check

Input [{"note":"A,B"},{"note":"Second row"}] creates one note column. The comma inside A,B stays inside one quoted field rather than creating an extra column.

What to check before using the answer

  • Spreadsheet applications can still infer dates or numeric types when importing. Choose explicit import types when leading zeros or identifier digits matter.
  • Spreadsheet protection prefixes risky text cells and headers with an apostrophe; it changes their literal text. Disable only when raw trusted values are required by the destination.
Why does a text value gain an apostrophe?

With formula protection enabled, text beginning like a spreadsheet formula is prefixed intentionally. Disable protection only when you need the raw text and trust how the destination will handle it.

Guidance updated . Methods and corrections

Are my inputs saved?

Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.

Can I switch to a related tool?

Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.

Search the complete directory ESC to close
Your everyday toolkit