Developer Tools

CSV ↔ JSON Converter

Convert CSV to JSON and JSON to CSV instantly in your browser.

Parsing Options

All parsing happens in your browser — your data never leaves your device.

☕ Love this tool? Support the developer.

100% free — no ads, no limits. Your support keeps every tool free.

$

Secure payment via Stripe · No account needed

About CSV ↔ JSON Converter

OptiPix CSV ↔ JSON Converter lets you transform data between CSV and JSON formats entirely in your browser. In CSV → JSON mode, paste or upload any CSV file and get a clean JSON array of objects. Configure the delimiter (comma, semicolon, tab, pipe, or custom), toggle whether the first row is treated as a header, choose the quote character, trim whitespace, and enable type inference to automatically detect numbers, booleans, and null values. A live preview table shows the parsed data before it becomes JSON. In JSON → CSV mode, paste a JSON array of objects and get a properly formatted CSV. Nested objects are automatically flattened using dot notation (e.g., address.city becomes a column). Select your preferred output delimiter. Quoted fields containing the delimiter, embedded commas, or newlines are handled correctly per RFC 4180. Upload .csv or .json files directly, copy the output to clipboard, or download as a file. All processing runs client-side — your data never leaves your device.

How It Works

The CSV parser reads the input character-by-character following RFC 4180 rules, handling quoted fields, escaped quotes, and embedded newlines. In JSON mode, each object is flattened recursively using dot-notation keys, then all rows are joined with the selected delimiter and properly quoted where necessary.

Use Cases

  • Convert spreadsheet exports (CSV) into JSON for use in web apps or APIs
  • Transform API JSON responses into CSV for analysis in Excel or Google Sheets
  • Parse data files with different delimiters (semicolons, tabs, pipes)
  • Flatten nested JSON objects into tabular form for reporting
  • Quickly preview and validate CSV structure before importing to a database

Frequently Asked Questions

Can it handle CSV files with quoted fields containing commas?
Yes. The parser is RFC 4180-compliant and correctly handles quoted fields that contain the delimiter character, embedded newlines, and escaped quotes (doubled quote characters).
What does type inference do?
When enabled, the converter automatically detects numbers (e.g., '42' becomes 42), booleans ('true'/'false'), and null values ('null', 'n/a', empty string) instead of leaving everything as strings.
How does JSON → CSV handle nested objects?
Nested objects are flattened using dot notation. For example, an object like { address: { city: 'Paris' } } becomes a column named 'address.city'.
What delimiters are supported?
Comma, semicolon, tab, pipe, and any custom delimiter string you enter. Both input parsing and CSV output respect your chosen delimiter.
Is my data sent to any server?
No. All parsing and conversion is done entirely in JavaScript running in your browser. Your CSV and JSON data never leaves your device.

Related Tools

All 102 Tools

Image CompressorBackground RemoverVideo CompressorImage UpscalerOCR Text ExtractorFormat ConverterImage ResizerEXIF RemoverFace BlurDepth EstimationQR Code GeneratorWatermark MakerColor Palette ExtractorPhoto FiltersImage to PDFObject DetectionImage ClassifierImage CaptionerAI Image GeneratorMeme GeneratorGIF MakerPhoto Collage MakerImage CropPhoto EffectsImage to SVGColor ChangerNoise RemoverPhoto RestorationColor PickerFavicon GeneratorImage to Base64Image Metadata ViewerImage AnnotatorPassport Photo MakerDocument ScannerASCII Art GeneratorImage ComparisonSprite Sheet GeneratorObject RemoverPanorama MakerWord CounterCase ConverterLorem Ipsum GeneratorUUID GeneratorUnix Timestamp ConverterText DiffURL Encoder / DecoderHTML Entity Encoder / DecoderBase64 Text Encoder / DecoderText to Binary / Hex / OctalHash GeneratorJSON Formatter / ValidatorRandom String GeneratorCSV ↔ JSON ConverterMarkdown EditorUnit ConverterPercentage CalculatorBMI CalculatorAge CalculatorTip CalculatorCSS Gradient GeneratorCSS Box Shadow GeneratorCSS Border Radius GeneratorGlassmorphism GeneratorNeumorphism GeneratorCSS Text Shadow GeneratorFlexbox PlaygroundCSS Grid GeneratorAudio TrimmerAudio ConverterAudio MergerAudio RecorderVideo to Audio ExtractorAudio Speed ChangerAudio Volume BoosterRingtone MakerVocal RemoverText to SpeechSpeech to TextAudio Noise RemoverAudio EqualizerAudio EffectsVideo TrimmerVideo MergerVideo ResizerVideo Speed ChangerVideo RotatorVideo to MP4 ConverterAdd Music to VideoMute VideoVideo LooperReverse VideoVideo ScreenshotAdd Subtitles to VideoVideo WatermarkScreen RecorderWebcam RecorderSlideshow MakerVideo FiltersCron Expression BuilderRegex TesterUnix Timestamp Converter