{}CsvForge

CLIENT-SIDE DATA ENGINE · ZERO SERVER UPLOADS

Convert CSV, JSON & SQL instantly in your browser.

Drop any CSV, TSV, JSON, or NDJSON file. Auto-detect delimiters, infer numbers and booleans, unflatten dot-notation keys, inspect column completeness, and export clean JSON or SQL in milliseconds.

Samples:
Input CSV / TSV
Rows: 0Columns: 0Delimiter: ,Time: 0.0 ms
Local browser execution · 0 bytes sent

CAPABILITIES

Engineered for clean data pipelines.

Zero-Upload Privacy

Every CSV, TSV, and JSON payload is parsed in local browser RAM via FileReader. Sensitive customer and financial records never touch a server.

RFC-4180 Compliant Engine

Correctly parses escaped quotes, embedded newlines, UTF-8 BOM headers, and auto-detects comma, semicolon, tab, and pipe delimiters.

Smart Type & Nested Keys

Automatically coerces numbers, booleans, and nulls while unflattening dot-notation columns like user.email into clean nested JSON objects.

SQL DDL + INSERT Export

Generate ready-to-run CREATE TABLE schemas and escaped INSERT INTO batches with inferred NUMERIC, BOOLEAN, and TEXT column types.

Interactive Table & Canvas Profile

Inspect parsed rows in a scrollable grid and visualize per-column completeness percentages on an instant HTML5 Canvas chart.

Bidirectional JSON to CSV

Paste API arrays or NDJSON streams, automatically flatten nested properties across heterogeneous objects, and download clean spreadsheets.

TECHNICAL GUIDE

How Client-Side CSV to JSON, NDJSON & SQL Conversion Works

Converting tabular spreadsheets into structured JSON payloads or database seed scripts is one of the most frequent tasks in backend engineering, analytics, and ETL prototyping. Yet most online converters upload your raw CSV files to remote servers—creating unnecessary GDPR, SOC 2, and credential-leakage exposure. CsvForge executes the entire transformation pipeline inside your browser tab using deterministic JavaScript character scanning and the native Web FileReader API.

1. RFC-4180 Parsing & Multi-Delimiter Auto-Detection

Naive CSV splitters that rely on line.split(',') break immediately on real-world exports. Customer names containing commas ("Acme, Inc."), multi-line address blocks inside double quotes, escaped quotation marks (""), and European semicolon-delimited Excel exports all require a stateful character-by-character parser.

Before parsing begins, CsvForge strips any leading UTF-8 Byte Order Mark (\uFEFF) emitted by Microsoft Excel and samples the first ten non-empty lines outside quoted literals. It scores commas (,), semicolons (;), tabs (\t), and pipes (|) for consistency across rows, automatically selecting the cleanest separator without manual configuration.

2. Automatic Type Coercion & Dot-Notation Unflattening

In raw CSV text, every cell is a string. When preparing payloads for REST APIs, MongoDB collections, or TypeScript interfaces, keeping numbers and booleans wrapped in quotes creates downstream schema errors. With Infer types enabled, CsvForge safely casts strict numeric strings (such as 149.00 or -42), lowercase boolean literals (true / false), and empty or null cells to native JSON primitives while preserving zip codes with leading zeros or ISO dates as strings.

Need hierarchical JSON from flat spreadsheet columns? Enable Unflatten dot.keys so columns like user.name and billing.mrr reconstruct into nested objects automatically. Conversely, when switching to JSON → CSV mode, CsvForge recursively flattens nested objects back into clean dot-notation headers and computes the full union of keys across sparse objects.

3. NDJSON Streaming & Instant SQL Seed Generation

Beyond standard JSON arrays, data engineers frequently need NDJSON (Newline-Delimited JSON) for BigQuery, Elasticsearch, ClickHouse, or log ingestion pipelines, where each record occupies a single line. For relational databases like PostgreSQL, SQLite, or MySQL, selecting SQL output inspects every column's inferred types to emit a ready-to-execute CREATE TABLE statement paired with properly single-quote escaped INSERT INTO values.

How CsvForge Compares

CapabilityCsvForgeAd-Heavy Online ConvertersManual Python / jq Scripts
Data Privacy100% Local Browser RAMOften uploaded to backend serversLocal machine
Formats SupportedCSV, TSV, JSON, NDJSON, SQLUsually CSV ↔ JSON onlyRequires custom code per format
Nested Dot-Keys1-click flatten & unflattenRarely supportedManual recursion needed
Schema & Null ProfilingLive Table + Canvas ChartPlain text output onlySeparate df.info() step
Setup & CostZero install, free foreverFree with intrusive popupsRequires runtime & dependencies

4. Best Practices Before Exporting Production Data

  • Verify header uniqueness: Duplicate column names silently overwrite object keys in standard JSON parsers. CsvForge automatically disambiguates duplicate headers (e.g., status_2) so no data is lost.
  • Switch to the Profile tab: Before importing into Postgres or Snowflake, inspect the Canvas completeness chart to catch unexpected mixed types or high null percentages caused by shifted columns.
  • Use NDJSON for large datasets: Standard JSON arrays must be parsed as a single root bracketed document. NDJSON lets downstream tools stream records line by line with minimal memory overhead.
  • Protect leading-zero identifiers: Postal codes, phone numbers, and SKU codes such as 00412 are preserved as strings by CsvForge's strict numeric regex (^-?(0|[1-9]\d*)), preventing accidental octal or leading-zero stripping common in Excel.
  • Keep SQL identifiers clean: Use lowercase snake_case table names in the toolbar when generating SQL output so Postgres, SQLite, and MySQL migrations execute consistently across environments without case-sensitivity surprises.

5. Common CSV & JSON Edge Cases Handled Automatically

Real-world exports from Stripe, Shopify, HubSpot, and Salesforce often combine irregular line endings (\r\n vs \n), jagged rows with trailing empty cells, and nested JSON arrays inside API responses. When converting from JSON back to CSV, CsvForge inspects every object across the entire payload—not just the first element—to build a complete union of column headers so optional fields never disappear. Arrays inside JSON fields are serialized as compact JSON strings within properly quoted CSV cells, making round-trip inspection straightforward in Google Sheets or Excel.

6. Choosing the Right Format: CSV, JSON, NDJSON, or SQL

Selecting the right target format saves hours of downstream glue code. Choose JSON when seeding frontend mocks, Postman collections, or document databases where nested objects and explicit booleans matter. Choose NDJSON when loading append-only analytics tables into BigQuery, Snowflake, or ClickHouse so workers can parse one record per line without holding the entire file in memory. Choose SQL when bootstrapping a local SQLite or PostgreSQL schema directly from an analyst spreadsheet. Finally, use Normalized CSV to standardize messy semicolon or pipe-delimited exports into clean RFC-4180 comma-separated tables ready for any spreadsheet tool.

FAQ

Frequently Asked Questions

Does CsvForge upload my CSV or JSON files to any server?

No. CsvForge runs 100% client-side inside your browser using native JavaScript and the HTML5 FileReader API. Your files, headers, and payloads never leave your device.

How does CsvForge handle commas and line breaks inside CSV cells?

CsvForge uses a stateful RFC-4180 compliant parser. Fields enclosed in double quotes can contain commas, semicolons, tabs, and multi-line line breaks without splitting into extra columns.

Can I convert semicolon-delimited or tab-separated (TSV) files?

Yes. By default, Delimiter is set to Auto-detect, which inspects the first ten rows for commas, semicolons, tabs, and pipes. You can also force a specific delimiter from the toolbar.

What does "Unflatten dot.keys" do when converting CSV to JSON?

When enabled, column headers containing periods such as user.name and billing.plan are automatically reconstructed into nested JSON objects instead of flat string keys.

How does JSON to CSV handle nested objects and arrays?

In JSON to CSV mode, nested objects are recursively flattened into dot-notation columns (for example metrics.p95_ms), arrays are serialized cleanly, and all unique keys across records form the CSV header row.

Can I generate SQL CREATE TABLE and INSERT statements from CSV?

Yes. Select SQL from the Output dropdown to generate a CREATE TABLE schema with inferred NUMERIC, BOOLEAN, and TEXT column types along with properly escaped INSERT INTO statements.

What is the difference between JSON and NDJSON output?

Standard JSON wraps all records in a single array ([...]), while NDJSON (Newline-Delimited JSON) writes one compact JSON object per line, ideal for BigQuery, Elasticsearch, and streaming logs.

Is CsvForge free for commercial and team use?

Yes. CsvForge is completely free to use for personal, academic, and commercial engineering workflows with no account signup or usage caps.