Markdown Editor & HTML Converter · Tutorial

How to turn spreadsheet cells into a Markdown table

4 min readbeginnerUpdated

You have a pricing or comparison table in a spreadsheet and want it in a README, wiki page or issue. This tutorial copies the cells, imports them into the Markdown Editor's table builder, adjusts the alignment and produces a neatly lined-up Markdown table in a minute.

What you need

  • The Markdown Editor, with its table builder (the ▦ button in the formatting bar)
  • A spreadsheet with the table, or the sample pricing table from the Try it button

Steps

  1. Copy the cells

    In Excel, Google Sheets, Numbers or LibreOffice, select the range including the heading row and copy it. The sample is a pricing table with the columns Plan, Price per month, Users and Support.

  2. Import into the grid

    Press the ▦ button in the formatting bar to open the table builder. Open Paste from a spreadsheet, CSV or an existing Markdown table, paste into the box and press Import. The message reads Loaded 3 rows × 4 columns. and the grid fills with your data. The first row becomes the table header.

  3. Check the alignment

    The Users column holds only numbers, so it is right-aligned automatically. The Price column contains values such as $9, which are right-aligned too. Use the menu above any column to change it, for example Centre for Support.

  4. Edit or extend the table

    Click any cell to change it. Press Enter to move to the cell below; pressing it on the last row adds a new row. Use Add column to add, say, a Storage column, then type its values.

  5. Copy the Markdown

    With Line up the pipes ticked, every column is padded so the source is easy to read. Check the preview, then press Copy and paste the table into your README or issue, or press Insert into editor to add it to the document you are writing.

    | Plan | Price per month | Users | Support   |
    | ---- | --------------: | ----: | --------- |
    | Free |              $0 |     1 | Community |

Try it yourself

Opens the Markdown Editor & HTML Converter with this tutorial's sample loaded.

Try it now

Common mistakes

Leaving out the heading row
Markdown tables always have a header. If you copy only the data rows, the first one becomes the header. Include the headings when you copy, or type them in the grid afterwards.
Merged cells in the spreadsheet
Markdown tables cannot merge cells. A merged cell's value lands in its first column and the rest stay empty, so unmerge before copying or fill the gaps in the grid.
Expecting formulas or formatting
Only the visible values are copied. Bold text, colours and formulas do not carry over.

Next steps

Go back to the Markdown Editor & HTML Converter, or keep going with one of these:

FAQ

Can I edit a Markdown table I already have?

Yes. Paste the Markdown table into the import box and press Import. Edit it in the grid and copy the regenerated table.

Why does my table look misaligned in the source but fine in the preview?

With Line up the pipes off, the source is compact. Rendered tables look the same either way.