# Markdown Table to CSV JSON with Type Inferred Schema

Convert a Markdown pipe table to CSV, JSON rows or an inferred JSON Schema with alignment and null diagnostics

> Canonical page: https://elysiatools.com/en/tools/markdown-table-to-csv-json-schema

- **Category:** Format Conversion

- **Keywords:** Markdown table, CSV, JSON, JSON Schema, type inference, alignment, null detection

## Overview

Infers integer, number, boolean, date, date-time and string columns, preserves escaped pipes and reports uneven rows without discarding cells.

## Inputs

- **Markdown Input** (textarea): | name | score | | --- | ---: | | Ada | 9.5 |
- **Output Format** (select)
- **CSV Delimiter** (select)
- **Has Header** (checkbox)
- **Null Tokens** (text): null,NULL,~
- **Required Fields** (select)

## When to use

- Convert a Markdown table into CSV with a comma, semicolon, or tab delimiter.
- Create JSON rows from structured Markdown table data.
- Generate a JSON Schema with inferred property types and configurable required fields.

## How it works

- Paste a Markdown pipe table into the Markdown Input field.
- Choose CSV, JSON, or JSON Schema as the output format.
- Set the CSV delimiter, header option, null tokens, and required-field mode when needed.
- Run the conversion to receive text output with type and alignment diagnostics.

## Use cases

- Convert documentation tables into delimiter-separated CSV data.
- Create typed JSON rows for application or data workflows.
- Draft JSON Schemas from sample tables while controlling which fields are required.

## Frequently asked questions

### What input does the tool accept?

It accepts a Markdown table that uses pipe characters to separate columns.

### Which output formats are available?

You can generate CSV, JSON rows, or an inferred JSON Schema.

### Which types can the tool infer?

It can infer integer, number, boolean, date, date-time, and string types.

### How are null values detected?

Values matching the configured null tokens, such as null, NULL, or ~, are treated as null.

### What happens when rows have different lengths?

The tool reports uneven rows and retains their cells instead of silently discarding data.

## Related tools

- [Markdown Table Generator](https://elysiatools.com/en/tools/markdown-table-generator): Generate formatted Markdown tables from CSV, JSON, or array data with alignment, header styles, width control, and merge hints
- [CSV to JSON Converter](https://elysiatools.com/en/tools/csv-to-json): Convert CSV data to JSON format with customizable parsing options
- [Text to Excel Converter](https://elysiatools.com/en/tools/text-to-excel): Convert various text formats to Excel with customizable parsing and formatting options
- [CSV to Markdown](https://elysiatools.com/en/tools/csv-to-markdown): Convert CSV data to Markdown table format
- [JSONata Query & Transform Studio](https://elysiatools.com/en/tools/jsonata-query-transform-studio): Preview JSONata-style queries and transformations, compare results across sample payloads, and export the transformed output as JSON, CSV, YAML, or Markdown
- [Messy Text to Structured Data Workbench](https://elysiatools.com/en/tools/messy-text-to-structured-data-workbench): Infer tables from pasted text, mixed delimiters, key-value lines, or HTML and export CSV, JSON, and Markdown.
- [Data Column Extractor](https://elysiatools.com/en/tools/data-column-extractor): Extract specific columns from tabular data with support for various formats and flexible column selection
- [JSON to CSV Converter](https://elysiatools.com/en/tools/json-to-csv): Convert JSON data to CSV format with customizable formatting options

## Samples

- [CSV Samples](https://elysiatools.com/en/samples/csv-samples): Sample CSV files with various data types, sizes, and complexity levels
- [Python Samples](https://elysiatools.com/en/samples/python): Essential Python code examples and Hello World demonstrations
- [PDF Samples](https://elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10
- [Terraform Plan JSON Samples](https://elysiatools.com/en/samples/terraform-plan-json-samples): Sample Terraform plan JSON files exported from terraform show -json style payloads for dependency visualization and change review
