AWS cron generator
Cron generator
Text counter
JSON to CSV converter
CSV to JSON converter
Unix timestamp converter
UUID v4 and v7 generator
JSON to TypeScript converter
Markdown to PDF
Base64
Images
JSON
QR Code
Passwords
Units
Hash
Colors
PDF Tools
PDF Editor
URL Encoder
Case Converter
Lorem Ipsum
Regex Tester
JWT Decoder
Text Diff
SVG Optimizer
EXIF Viewer
Color Extractor
Favicon Generator
Universal Converter
Hours Converter
PDF Splitter
Images to PDF
PDF to Image
Background Remover
Converters

CSV to JSON converter

Convert CSV tables into JSON records while preserving identifiers such as 0012 and long numbers as text. Check headers and records before exporting the complete result.

On your device

Files and text are processed in your browser.

Privacy Policy
Processed in this browser. No data is uploaded or saved.View the other converter

Strings are preserved by default. Optional inference converts safe numbers and booleans, not dates or unsafe integers. Review identifiers before enabling it.

Maximum 2 MiB UTF-8 and 10000 records.

02Preview

.json
≡ → [ ]

Add an input and run the conversion to see your result.

First 100 records and 50 columns only. Copy and download include the complete result.

How to use this tool

  1. Input

    Paste a table with a header or import a .csv, .tsv or .txt file. Quote cells that contain delimiters or line breaks.

  2. Options

    Select the actual file delimiter. Leave inference off if every value must remain text.

  3. Result

    Select Convert. Fix any indicated record, review the table and copy or download the complete JSON.

Worked example

Worked example · CSV to JSON converter

With inference off, 0012 stays a string. The CSV header becomes a property name on every object.

Input

id,name
0012,Ana
0013,João

Result

[
  { "id": "0012", "name": "Ana" },
  { "id": "0013", "name": "João" }
]

Options: No inference · comma delimiter

Formats and limits

Limits
Maximum 2 MiB UTF-8 and 10000 records.
Options
Yes. By default every value is a string, so 0012 stays "0012". Do not enable inference for identifiers whose formatting matters.
Result
Only when you enable the option. Safe numbers and booleans are converted; dates and integers outside the safe range remain text.

Common issues

What happens to duplicate headers?

They are rejected to prevent overwritten values. Each column needs a non-empty, unique header. Errors identify the affected logical record.

How are quotes and line breaks handled?

A quoted cell can contain delimiters and line breaks. Escape a quote inside it by doubling it. Every record must have as many cells as the header.

CSV to JSON converter

Convert CSV tables into JSON records while preserving identifiers such as 0012 and long numbers as text. Check headers and records before exporting the complete result.

Review the result before using it

With inference off, 0012 stays a string. The CSV header becomes a property name on every object.

Formats and limits

Maximum 2 MiB UTF-8 and 10,000 records. Processed in this browser. No data is uploaded or saved.

Frequently Asked Questions

Are leading zeros preserved?

Yes. By default every value is a string, so 0012 stays "0012". Do not enable inference for identifiers whose formatting matters.

When are types inferred?

Only when you enable the option. Safe numbers and booleans are converted; dates and integers outside the safe range remain text.

What happens to duplicate headers?

They are rejected to prevent overwritten values. Each column needs a non-empty, unique header. Errors identify the affected logical record.

How are quotes and line breaks handled?

A quoted cell can contain delimiters and line breaks. Escape a quote inside it by doubling it. Every record must have as many cells as the header.

Are all rows exported?

Yes. The preview is limited to 100 records and 50 columns; copy and download include the complete result within the input limits.