Markdown To ASCII Table

Login

Email
Password

Don't have an account yet?

Go to Sign up

Input Data
Sample {{ showCoderInput ? 'Choose File' : 'Enter Data' }}

                                
Valid Data Invalid Data — Cannot parse as table
Online Table Editor
Row Col Row Col
Transpose Clear Delete Empty Deduplicate
ABC abc Abc
Replace
First Row as Header
{{ displayRows.length }} rows x {{ displayHeaders.length }} columns{{ firstRowAsHeader ? ' (1 header)' : '' }} {{ selectedRows.length > 0 ? selectedRows.length + ' selected' : '' }}
Output Data ({{ outputFormatDisplayName }})
{{ copied ? 'Copied!' : 'Copy to Clipboard' }} Download File
Properties
Convert Markdown Table to ASCII online — paste, edit, and download.

Border Style:
Comment Wrapper:
Text Alignment:
Row Separators
Convert Restart
Insert Row Below
Insert Row Above
Insert Column Right
Insert Column Left
Delete Row {{ contextMenu.row + 1 }}
Delete Column {{ contextMenu.col + 1 }}
Clear Cell
Clear Row
Case sensitive Use regex Cancel Replace All

What Is the Markdown To ASCII Table Converter?

The Markdown To ASCII Table Converter on A.Tools transforms Markdown pipe-delimited tables into plain-text ASCII art tables. Choose from 9 border styles, 13 code comment wrappers, 3 text alignment options, and optional row separators. All processing runs in your browser. No data leaves your device.

ASCII tables render correctly in every text environment — terminals, code editors, README files, email, Slack, and documentation. Unlike HTML or Markdown tables, ASCII tables are truly plain text: no special rendering required.

How to Convert Markdown Tables to ASCII?

Step 1: Provide Your Markdown Data

Click Enter Data to paste a Markdown table into the input area, or click Choose File to drag and drop a .md file. Press Sample to load example data.

Step 2: Edit in the Online Table Editor

Once parsed, an interactive spreadsheet appears. Use the toolbar to:

  • Add or delete rows and columns

  • Transpose the table (swap rows and columns)

  • Remove duplicate rows

  • Delete empty rows and columns

  • Change text case (UPPERCASE, lowercase, Capitalize)

  • Find and replace values — supports case-sensitive search and regex

  • Toggle First Row as Header to define field names

Right-click any cell for context-menu operations.

Step 3: Configure Settings

In the Properties panel:

SettingDefaultDescription
Border Style(varies)Choose from 9 visual border styles
Comment WrapperNoneWrap output in code comment syntax for 13 languages
Text AlignmentLeftAlign cell text left, center, or right
Row SeparatorsOffAdd separator lines between each row

Step 4: Export

Click Convert to generate the ASCII table. Use Copy to Clipboard or Download File to save the result.

Key Features

  • Two input modes: Paste Markdown directly or upload a .md file via drag-and-drop

  • Full table editor: Edit, transpose, deduplicate, find-and-replace before converting

  • 9 border styles: MySQL, Unicode, reStructuredText, Markdown, Dashed, Double, Compact, and more

  • 13 comment wrappers: SQL, Python, JavaScript, C, HTML, Ruby, PHP, Go, and more

  • 3 alignment options: Left, center, or right cell text alignment

  • Row separators: Add horizontal lines between every row for readability

  • Client-side processing: Files never leave the browser — zero data upload

  • Undo/Redo: Full edit history with revert support

  • Context menu: Right-click for quick row/column/cell operations

  • Header toggle: Treat the first row as field names or regular data

  • Validation indicator: Real-time feedback on input validity

What the Output Looks Like

Given this Markdown input:

| Name  | Age | City        |
|-------|-----|-------------|
| Alice | 30  | New York    |
| Bob   | 25  | Los Angeles |

MySQL border style

+-------+-----+-------------+
| Name  | Age | City        |
+-------+-----+-------------+
| Alice | 30  | New York    |
| Bob   | 25  | Los Angeles |
+-------+-----+-------------+

Unicode border style

┌───────┬─────┬─────────────┐
│ Name  │ Age │ City        │
├───────┼─────┼─────────────┤
│ Alice │ 30  │ New York    │
│ Bob   │ 25  │ Los Angeles │
└───────┴─────┴─────────────┘

reStructuredText (Grid) border style

+-------+-----+-------------+
| Name  | Age | City        |
+=======+=====+=============+
| Alice | 30  | New York    |
+-------+-----+-------------+
| Bob   | 25  | Los Angeles |
+-------+-----+-------------+

Dashed border style

-------+-----+--------------
Name  | Age | City
-------+-----+--------------
Alice | 30  | New York
Bob   | 25  | Los Angeles
-------+-----+--------------

With Python comment wrapper

# +-------+-----+-------------+
# | Name  | Age | City        |
# +-------+-----+-------------+
# | Alice | 30  | New York    |
# | Bob   | 25  | Los Angeles |
# +-------+-----+-------------+

With SQL comment wrapper

-- +-------+-----+-------------+
-- | Name  | Age | City        |
-- +-------+-----+-------------+
-- | Alice | 30  | New York    |
-- | Bob   | 25  | Los Angeles |
-- +-------+-----+-------------+

With HTML comment wrapper

<!-- +-------+-----+-------------+ -->
<!-- | Name  | Age | City        | -->
<!-- +-------+-----+-------------+ -->
<!-- | Alice | 30  | New York    | -->
<!-- | Bob   | 25  | Los Angeles | -->
<!-- +-------+-----+-------------+ -->

With center alignment and row separators

+-------+-----+-------------+
| Name  | Age |    City     |
+-------+-----+-------------+
| Alice | 30  |  New York   |
+-------+-----+-------------+
| Bob   | 25  | Los Angeles |
+-------+-----+-------------+

Border Styles and Comment Wrappers

Border style comparison

StyleCharactersBest For
MySQL+, -, |Terminal output, SQL results, CLI tools
Unicode, , , Modern terminals, documentation, presentations
reStructuredText Grid+, -, =, |RST documentation, Sphinx docs
reStructuredText Simple=, -RST simple table format
Markdown|, -README files, Markdown docs
Dashed-, |Minimal style, plain text
Double, , , Emphasis, visual distinction
CompactNo bordersDense data, space-constrained layouts
ASCII (Plain)-, |Maximum compatibility, email-safe

Comment wrapper comparison

WrapperSyntaxLanguages
None(no prefix)Plain text, Markdown
Hash# Python, Ruby, YAML, Shell, Perl
Double dash-- SQL, Lua, Ada, Haskell
Double slash// JavaScript, Java, C, C++, C#, Go, Rust
Slash-star/* ... */C, C++, Java, CSS
HTML<!-- ... -->HTML, XML, SVG
Semicolon; Assembly, INI, Lisp, Clojure
RemREM Batch files, BASIC
Percent% LaTeX, MATLAB, Erlang, Prolog
Triple quote"""Python docstrings
Triple backtick```Markdown code blocks
Xml<!-- ... -->XML config files
Single quote' Visual Basic, VBScript

Settings Explained

Border Style

Controls the characters used to draw table borders. 9 options range from minimal (Compact) to decorative (Unicode, Double) to documentation-standard (reStructuredText).

Choose based on your target environment:

  • Terminal/CLI: MySQL or Unicode

  • Documentation: reStructuredText Grid or Simple

  • README files: Markdown

  • Email: ASCII (Plain) — safe in all mail clients

  • Presentations: Unicode or Double for visual impact

Comment Wrapper

Wraps every line of the ASCII table in code comment syntax, allowing you to embed tables directly in source code without triggering syntax errors.

This is useful for:

  • Documenting database schemas in SQL files

  • Adding reference tables in Python docstrings

  • Including lookup data in JavaScript constants

  • Embedding tables in configuration files

Text Alignment

Controls how text is positioned within cells:

AlignmentExampleUse Case
LeftAlice    Default, natural reading
Center Alice Headers, emphasis
Right    AliceNumbers, monetary values

Row Separators

When enabled, adds a horizontal separator line between every data row (not just between the header and body). This improves readability for wide tables with many columns.

Without row separators:

+-------+-----+-------------+
| Name  | Age | City        |
+-------+-----+-------------+
| Alice | 30  | New York    |
| Bob   | 25  | Los Angeles |
+-------+-----+-------------+

With row separators:

+-------+-----+-------------+
| Name  | Age | City        |
+-------+-----+-------------+
| Alice | 30  | New York    |
+-------+-----+-------------+
| Bob   | 25  | Los Angeles |
+-------+-----+-------------+

Use Cases: When to Convert Markdown to ASCII Tables

ScenarioBorder StyleComment Wrapper
SQL schema documentationMySQLSQL (--)
Python reference tablesUnicodeHash (#)
JavaScript lookup dataMySQLDouble slash (//)
README filesMarkdownNone
Terminal/CLI outputMySQL or UnicodeNone
Sphinx documentationreStructuredText GridNone
Email plain-text tablesASCII (Plain)None
LaTeX documentationMySQLPercent (%)
C/C++ header commentsMySQLSlash-star (/* */)
HTML source commentsMySQLHTML (<!-- -->)
Go source code tablesMySQLDouble slash (//)
Shell script documentationMySQLHash (#)
Configuration file commentsCompactSemicolon (;)

SQL Schema Comment

-- +------------+----------+-----------+
-- | Column     | Type     | Nullable  |
-- +------------+----------+-----------+
-- | id         | INT      | NOT NULL  |
-- | name       | VARCHAR  | NOT NULL  |
-- | email      | VARCHAR  | NULL      |
-- | created_at | DATETIME | NOT NULL  |
-- +------------+----------+-----------+

Python Docstring Table

# +--------+-------+------------+
# | Name   | Age   | Role       |
# +--------+-------+------------+
# | Alice  | 30    | Admin      |
# | Bob    | 25    | Developer  |
# | Carol  | 28    | Designer   |
# +--------+-------+------------+

Terminal Output

┌──────────┬───────┬────────────┐
│ Endpoint │ Method │ Auth       │
├──────────┼───────┼────────────┤
│ /users   │ GET   │ Token      │
│ /users   │ POST  │ Token      │
│ /login   │ POST  │ Public     │
└──────────┴───────┴────────────┘

C Header Comment

/* +----------+--------+---------+ */
/* | Register | Offset | Default | */
/* +----------+--------+---------+ */
/* | CTRL     | 0x00   | 0x00    | */
/* | STATUS   | 0x01   | 0xFF    | */
/* | DATA     | 0x02   | 0x00    | */
/* +----------+--------+---------+ */

Frequently Asked Questions (FAQ)

  • Does this tool upload my files to a server?

    No. All file parsing and conversion runs in your browser using JavaScript. Your data stays on your device. A.Tools never receives, stores, or transmits your file contents.

  • What Markdown table formats are supported?

    The tool supports standard pipe-delimited Markdown tables following the CommonMark specification, including tables with or without leading/trailing pipes and alignment indicators.

  • What is an ASCII table?

    An ASCII table is a plain-text table drawn using characters like +, -, |, and = for borders. It renders correctly in every text environment — terminals, code editors, email, and documentation — without requiring any special renderer.

  • Which border style should I use?

    Use MySQL for terminal output and SQL documentation. Use Unicode for modern terminals and presentations. Use reStructuredText Grid for Sphinx/RST docs. Use Markdown for README files. Use Compact when you need minimal formatting.

  • What does the Comment Wrapper do?

    It adds code comment syntax (like #, --, //, /* */) to the beginning and end of each line, so you can embed the ASCII table directly in source code files without causing syntax errors.

  • When should I use Row Separators?

    Enable Row Separators when the table has many columns or when visual distinction between rows is important — such as wide lookup tables, terminal output with many rows, or printed reference cards.

  • Can I use Unicode borders in all terminals?

    Most modern terminals (iTerm2, Windows Terminal, GNOME Terminal, Konsole) support Unicode box-drawing characters. Older terminals or restricted environments may not. If unsure, use the MySQL style for maximum compatibility.

  • Can I edit the table before converting?

    Yes. After parsing, the full table editor lets you modify cells, add or remove rows and columns, transpose, deduplicate, change text case, and find-and-replace values.

Featured Tools

Featured tools that you might find useful.

Popular Tools

List of popular tools that users love and frequently use.

New Tools

The latest tools added to our collection, designed for you.

Topics

The tools grouped by topics to quickly find what you need.
Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.

Excel To JSON

Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.
Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.

Excel To CSV

Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.
Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.

Excel To SQL

Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.
Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.

Excel To ASCII Table

Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.