Markdown table generator
📋 Conversion settings
💡 Instructions for use
- Content copied from spreadsheet software is separated by tab characters by default. This tool can automatically identify tab characters, commas and vertical bars.
- If the cell content is in quotation marks, it will be parsed according to the general rules, and the delimiters within the quotation marks will not be regarded as column boundaries.
- Vertical bars within cells will be escaped to avoid conflict with table column separators; line breaks within cells will be replaced with spaces.
- When the tab version is reversely converted and output, it can be directly pasted back into the spreadsheet software without further column separation.
- The content is only converted within the browser and is not uploaded or saved; if you need to keep it as a file, please copy or download the results.
The Markdown table generator eliminates the trouble of handwriting vertical and horizontal lines and directly converts data into standardized syntax.
Three common mistakes in handwriting
- Separating row length: When the number of dashes does not match the column width, some renderers can still handle it, but the readability of the source code is poor.
- Vertical lines at the beginning and end: Although not mandatory, it is more difficult to align the source code if omitted, and team norms usually require it to be retained. Vertical bars in content: Forgetting to escape will directly destroy the table structure, and the phenomenon is often discovered only after rendering. The generator handles these three things at once to avoid repeated debugging.
Verification sequence after generation
First check whether the number of rows and columns is consistent with the source data, then check whether the fields containing vertical bars are escaped, and finally render the preview to confirm the rendering effect. All three steps are completed within tens of seconds, but you can avoid submitting the wrong form to the document warehouse. When alignment is required, you can choose between left, center, and right, and switch between comparisons at any time.
When generating a markup table, column widths are automatically determined by the content and do not have to be aligned manually. If you want the source code to be easier to read, you can leave a space on both sides of each column.
It is recommended to leave a blank row at the top of the table and one at the bottom. Some renderers require a blank line between the table and adjacent paragraphs, otherwise the table will be treated as ordinary text.
Leave a blank line at the top and bottom of the table to make the rendering more stable; the column width is automatically determined by the content, so there is no need to manually align it, and the source code is still readable.
The blank lines above and below cannot be omitted.
Render and preview once before submitting, and you can immediately find problems such as vertical bars in the field not being escaped.
📖 Glossary
- Markdown table
- A plain text table is written with vertical lines separating cells and a line of short horizontal lines marking the table header. After rendering, it becomes a web table.
- delimiter
- The character used to separate columns, tabs are used for content copied by spreadsheet software, and commas are used for comma-delimited files.
- escape
- Add a backslash before special characters so that they are not interpreted as syntax symbols. For example, vertical bars in cells need to be escaped.
- alignment mark
- The colon in the header delimiter line is written on the left to indicate left alignment, both sides indicate centering, and the colon on the right indicates right alignment.
- wrapped in quotation marks
- When the field content contains delimiters or quotation marks, use double quotation marks and write two internal quotation marks. This is a general rule for delimiting text.
- Header
- Markdown tables must have a row of headers, and placeholder column names should be automatically filled in if missing.
- Column width padding
- Fill in spaces in the source code to align the columns for easier reading, but does not affect the final rendering effect.
- cell
- The smallest unit formed by the intersection of rows and columns in a table. Markdown table cells do not support crossing rows and columns.
- automatic recognition
- Which delimiter is used is inferred based on the number of occurrences of each delimiter in the previous lines.
- plain text table
- A tabular expression that does not contain format information and only relies on characters to divide rows and columns is convenient for version management and difference comparison.
🔗 All keywords and tutorials
❓ FAQ
- Do I have to keep the leading and trailing vertical lines??
- It is not necessary for rendering, but most team specifications require it to be retained, and the source code alignment is neater. This tool retains it by default.
- How to change alignment?
- Just select left, middle and right in the settings. The tool will write the corresponding colons in the separated lines and regenerate it once.