CSV to HTML/MediaWiki Table

Convert CSV to HTML or MediaWiki compatible tables.

About CSV to HTML/MediaWiki Table

Web pages and wikis need tables in their own markup: HTML <table> elements for a site or an email, and wikitable syntax for Wikipedia, Fandom or an internal MediaWiki. This converter produces both from the same CSV as you type, with the first row as header cells, so you only have to pick a tab and copy.

Paste the CSV, switch between the HTML and MediaWiki tabs and copy the code. The conversion happens live in your browser and nothing is uploaded.

How to use CSV to HTML/MediaWiki Table step by step

  1. Paste the comma-separated CSV into the input box. The table code is generated automatically as you type.
  2. Choose the HTML tab for a <table class="table"> with thead and tbody, or the MediaWiki tab for a {| class="wikitable" |} block.
  3. Click "Copy" and paste the code into your page, template or wiki editor.

Input and output example

Input

name,city
Ana,Madrid
Luis,Sevilla

Output

HTML:
<table class="table">
  <thead>
    <tr>
        <th>name</th>
        <th>city</th>
    </tr>
  </thead>
  <tbody>
    <tr>
        <td>Ana</td>
        <td>Madrid</td>
    </tr>
    ...

MediaWiki:
{| class="wikitable"
|-
! name !! city
|-
| Ana || Madrid
|-
| Luis || Sevilla
|}

Why use our CSV to HTML/MediaWiki Table?

Common use cases

Limits and tips

Frequently asked questions

What is the MediaWiki table syntax?

A table starts with {| and ends with |}. Rows are separated by |-, header cells start with ! (or !! when on one line) and normal cells start with | (or || on one line). The class="wikitable" attribute applies the default wiki table style.

Does the HTML output include styles?

No inline styles are added. The table has class="table" and the semantic thead and tbody sections, so you can style it with CSS or rely on a framework such as Bootstrap that recognises that class.

Can I use this for Confluence or Notion?

Confluence and Notion do not accept raw HTML or wiki markup when pasting. For those tools, use the CSV to Markdown converter: both accept Markdown tables pasted as text.

What is the difference between HTML and MediaWiki tables?

Both describe the same grid, but HTML tags are read by browsers everywhere while MediaWiki markup is a shorthand that only wiki software understands. MediaWiki can also render HTML tables, though the wikitable syntax is shorter and preferred by editors.

Is anything sent to a server?

No. The table code is generated in your browser as you type and is never transmitted.

Related tools

Other free utilities you may find useful

Available languages