Convert Markdown Tables to Word Tables

Turn a Markdown pipe table into an editable Word table, with checks for column counts, alignment and cell text before you export the .docx file.

If you write notes, README files or technical drafts in Markdown, you have probably built tables out of pipes and dashes. That plain-text layout reads fine in a code view, but it turns into a block of vertical bars when you paste it into a word processor. If an editor, a colleague or a client needs a Word file, they need a real table they can click into and edit.

Searching for markdown to word table usually means one of two things: you want the conversion done, or the result you got looks wrong and you want to know why. This guide covers only the table case. It explains which Markdown tables convert cleanly, how to convert one with the UniDoc web editor, and how to check the Word file before you send it.

How do you convert Markdown tables for Word? The short answer

Make sure the table is valid Markdown, open it in the UniDoc web editor at app.unidoc.top, and export the document as a Word .docx file. The rows and columns come through as a Word table you can edit.

Your situationWhat to doWhy
Clean table with a header row and a separator rowConvert it as writtenEach Markdown row maps to one Word row
Some rows have more or fewer cells than the headerFix the source rows before convertingMismatched rows produce missing or shifted cells
You set left, center or right alignment with colonsKeep the colon markers in the separator rowThe markers tell the converter how to align each column
You need merged cells or custom column widthsConvert first, then adjust the table in WordMarkdown has no merged cells and does not store column widths
Your table sits inside a PDF, not in MarkdownWork from the PDF in the desktop client at download.omnidoc.topThis guide covers Markdown source, not PDF tables

Before you start

  • Confirm the table syntax. A pipe table needs a header line, a separator line made of dashes, and one line per body row. For example, | Item | Qty | followed by | --- | ---: | and then the data rows. Without the separator line, most converters read the table as plain text.
  • Count the cells in each row. Every row needs the same number of cells as the header. A stray pipe at the end of one line adds an extra column, and the rest of the table shifts out of alignment.
  • Escape any literal pipe inside a cell. Write it as \| so the converter does not read it as a column break. An unescaped pipe in a cell text is a common reason a row splits in two.
  • Decide what you need as the output. If the Word file is the final product, plan to edit it in Word after export. If you only need the table content, copy the converted table into the document where it belongs.
  • Keep the original Markdown. Save a copy of the source before you edit it. If the converted table looks wrong, you can compare it against the original line by line.

Converting a markdown to word table in UniDoc, step by step

  1. Copy the Markdown source for the table. Include only the table lines, plus any text you want to keep around it. Removing surrounding notes now keeps the Word file tidy.
  2. Fix the syntax before you convert. Check that the header and separator lines are directly next to each other and that every row has the same number of cells. Fixing these first saves a second round of conversion.
  3. Open the UniDoc web editor at app.unidoc.top. Bring the Markdown into the editor. The editor supports Markdown, so the table should appear as a table rather than as raw pipes and dashes.
  4. Confirm the table renders. If you still see pipe characters, the separator line is probably missing or a row has the wrong number of cells. Go back to step 2 and correct the source.
  5. Edit cell text in the editor if needed. Correct any typos or wrong values directly in the table. Do this before export so the Word file is final when you open it.
  6. Export the document as Word (.docx). UniDoc supports a Word round trip, so the file keeps its table structure when it leaves the editor.
  7. Open the .docx file in your word processor. Click into a cell and type a few characters to confirm the table is editable. If the cell behaves like plain text, the file was probably saved in a different format.

Check the result

Once you have the Word file, read the table against your original Markdown before you share it. Conversion does not guarantee every cell is correct, so treat this as a required step.

CheckHow to see itIf it's wrong
Column countCount the Word columns and compare them with the Markdown headerLook for an extra or missing pipe in the source row, fix it, and convert again
Header rowThe first row should contain your column namesIf the header moved down, confirm that the header line sits directly above the separator line
AlignmentLook at numeric columns and any column you aligned with colonsAdjust alignment in Word, and check that the colon markers are in the separator row
Cell textRead every cell against the sourceRetype any characters that changed, and recheck cells that contained escaped pipes
EditabilityClick into a cell and typeRe-export as .docx from the editor, then open the new file

❓ FAQ

1. Why does my Markdown table still show pipes after conversion?

The usual causes are a missing separator line or a row with a different number of cells than the header. Correct the Markdown source, then convert the table again from the beginning.

2. Can a Markdown table have merged cells?

Markdown has no syntax for merged cells, so the table converts as a plain grid. Merge the cells in Word after you export the file.

3. Will the column widths match my Markdown?

Markdown does not store column widths, so the widths in the Word file will not be set from your source. Adjust them in Word after export.

4. Do I need to install anything to convert a table?

No. The UniDoc web editor runs at app.unidoc.top. If you prefer a desktop app, the OmniDoc desktop client is available at download.omnidoc.top.

📝 Summary

A Markdown pipe table converts cleanly when its header and separator rows are valid and every row has the same number of cells. Convert it in the UniDoc web editor, export a .docx file, and then check the columns, alignment and cell text before you share the document. Anything Markdown cannot express, such as merged cells, is easiest to add in Word afterward.

Open OmniDoc to edit and export your documents

Updated 2026-11-04