TTKTheTextKit

Text Table Generator

Paste rows of text, choose what separates the columns and pick a style: an ASCII grid drawn with plus signs, dashes and bars, a Unicode box, the psql style with a rule under the header, or plain columns. Numbers are aligned to the right and text to the left, or you can choose one alignment for every column. Copy the table into a code comment, a README, a terminal or a plain text email. Everything runs in your browser.

Spaces inside each cell edge

4 rows, 3 columns, widest line 23 characters

Paste the rows, pick the separator and a style, and copy the table into a code comment, a README, a plain text email, a terminal or a chat. Use a monospaced font where you paste it, or the columns will not line up. A column of numbers is aligned to the right and a column of text to the left, unless you choose one alignment for all. A row with fewer cells is filled with empty cells, and a line break inside a quoted cell becomes a space. Widths are counted in display columns, with wide characters such as Chinese, Japanese and Korean characters and most emoji counted as two, which is right in most terminals but depends on the font. For a table in Markdown, use the Markdown Table Generator. Everything runs in your browser and nothing you paste is uploaded.

Related Tools

[5 suggestions]

About the Text Table Generator

Each column is as wide as its longest cell, and each cell is padded with spaces so that the borders line up in a monospaced font. For the rows Item,Qty,Price, Apple,3,1.25 and Pear,12,0.80, the ASCII grid has a line of plus signs and dashes above and below, bars between the columns, and a double rule of equals signs under the header, with the quantities and prices lined up on the right. The Unicode style draws the same table with box drawing characters and a double rule under the header. The psql style leaves off the outer border and puts a rule of dashes and plus signs under the header, the way the PostgreSQL command line client prints a result. Plain columns are separated by two spaces and underlined with dashes. A column counts as numbers when every cell in it reads as a number, such as 12, -3.5, 1,234.50, $9.99 or 45%, and a column that mixes text and numbers stays on the left. A row with fewer cells is filled with empty cells, and a line break inside a quoted cell becomes a space. Widths are counted in display columns, with wide characters such as Chinese, Japanese and Korean characters and most emoji counted as two, which is right in most terminals but depends on the font.

How do I make an ASCII table from CSV?▾

Paste the rows, keep the separator on Comma, choose ASCII grid and copy the result. Each column is padded to its widest cell, and the first row gets a double rule under it when it is marked as a header.

Why do my columns not line up where I paste?▾

A table drawn with characters lines up only in a monospaced font. Paste it into a code block, a terminal or a plain text editor, or set the font of the document to a monospaced one such as Courier or Consolas.

Can I draw a table with box characters?▾

Yes. Choose Unicode box for single lines with a double rule under the header. The characters come from the Box Drawing block of Unicode and need a font that has them, which most monospaced fonts do.

How are numbers aligned?▾

With Numbers right selected, a column in which every cell reads as a number is aligned to the right and every other column to the left. Choose Left, Right or Center to use one alignment for all columns.

Is my text uploaded?▾

No. The table is built in your browser and nothing you paste is sent anywhere.