Blog

Preview Markdown tables and save them as HTML

Preview Markdown notes in your browser, check their headings and tables, and save an HTML file. Actual screenshots show when to copy HTML and when to download it.

The English tool with Markdown check notes on the left and a heading and results table on the right.

After writing check results in Markdown, you can give someone an HTML file to read in their browser, even if they do not use a Markdown editor. Markdown Preview / Converter lets you compare the source text with the rendered result and check that the table is arranged as intended.

Paste the check notes and inspect the table

  1. The tool opens with a sample. Select “Clear” and paste the following example into the “Markdown” field.
  2. Make sure the option for GFM tables and task lists is checked. In the English interface, it is called “GFM extensions (tables/tasks).”
  3. “HTML Preview” shows the heading Weekly checks and a table with two rows, Backups and Alerts. If it does not become a table, check that a separator row using --- sits immediately below the header row and that every row has the same number of columns.
# Weekly checks

## Results

| Item | Status |
| --- | --- |
| Backups | OK |
| Alerts | Pending |
English interface showing Markdown headings and a pipe-delimited table on the left, with Weekly checks and a two-row table on the right.
Compare the source text and rendered result to check for missing columns or rows.

Save an HTML file that opens in a browser

  1. Select “Download HTML” below the preview. The file is saved as converted.html.
  2. Open the saved file in a browser and check the heading and table contents. The file includes basic display styles, so the table borders and spacing differ slightly from the tool’s preview.
The English interface with Copy HTML and Download HTML below the preview and generated HTML underneath.
Use Download HTML to save a file.

Use “Copy HTML” when inserting the converted result into an existing web page. It copies the body fragment shown in the “Generated HTML” field. If you will continue editing the Markdown, keep the source text too, for example in a .md file.

Conversion runs inside the browser, but if the Markdown includes images at external URLs, the browser may fetch them when showing the preview or opening the saved HTML. A document containing only headings and tables, as in this example, can also be read offline after saving it as HTML. When publishing to GitHub or Qiita, check the destination’s preview as well, because supported extensions and appearance can differ.