GenerateRandomSearch

Markdown Table Generator

Formatting a table by hand goes wrong quietly. A stray pipe in one cell breaks a Markdown table two rows further down; a row with a column missing shifts everything after it; neither shows up until somebody reads the rendered page. This formats the table properly — and then parses its own output back into cells and compares them against what you pasted, so an escaping mistake is caught here rather than in your document.

What this generator does

Reads your pasted rows into cells, escapes whatever needs escaping for the format you asked for, lines the columns up, and reports any row whose cell count did not match the heading.

How to use this tool

  1. Paste your rows, with the heading first. Commas, tabs or pipes all work.
  2. Choose the format you want out and how the columns should line up.
  3. Copy the finished table.
  4. Check the notes below it — a row with the wrong number of cells is reported rather than silently shifted.

Understanding the controls

Your data
The first row is the heading. Cells may be separated by commas, tabs or pipes, and quoted commas are kept inside their own cell rather than splitting it.
Give me
Markdown, HTML, aligned plain text, or CSV. Each escapes different characters, which is why each is checked separately.
Column alignment
Left, centred or right. In Markdown this sets the colons in the alignment row; in HTML it sets a text-align style.

Common use cases

  • Putting a spreadsheet extract into a README or a pull request
  • Converting a CSV into an HTML table for a page
  • Lining up a table in plain text for a code comment or an email
  • Cleaning up a table copied out of a document
  • Checking that a table with awkward characters survives formatting

How this generator works

The finished table is parsed back into cells and compared with the ones that went in, cell for cell. That single check catches a bad escape, a lost column and a mangled cell at once, without having to guess which might have happened. A pipe inside a Markdown cell, angle brackets in HTML and a comma in CSV are each escaped and then confirmed to survive the round trip.

Randomness and fairness

Nothing is random. The same data and settings always produce the same table.

For how randomness is produced across the whole site, see how Generate Random works.

Limitations and good to know

  • One table at a time, and cells cannot contain line breaks — a newline inside a cell is turned into a space.
  • Rows with too few cells are padded and rows with too many are trimmed, with the count reported rather than hidden.
  • Plain-text alignment counts characters, so it lines up only in a monospaced face.
  • The HTML is a plain table with an inline alignment style; there are no classes or styling hooks.

Privacy and your data

Your data stays in your browser. Nothing you paste is transmitted or stored.