Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Is there a webapp that can create ASCII-art tables like this one? It doesn't have to use ASCII (it can be Unicode), I meant ASCII in the sense of ASCII-art.

------------------------------------------------
|           | ColA            | ColB           |
------------------------------------------------
| Row1      | CellA1          | CellB1         |
------------------------------------------------
| Row2      | CellA2          | CellB2         |
------------------------------------------------
| Row3      | CellA3          | CellB3         |
------------------------------------------------

This would be useful for sites that don't support proper tables (like StackExchange).

share|improve this question
    
Please check this one: softpedia.com/get/Office-tools/Other-Office-Tools/… Regards –  user57606 Jan 23 at 11:43

6 Answers 6

up vote 55 down vote accepted

Now there is: Format Text as Table.

I've been meaning to create this utility for a while. I was actually inspired by MySQL's command line utility and the lack of tables on SO. So thanks for reminding me to make it.

And thanks to @Lipis for the Unicode char idea.

Here's an example of the output:

+------+--------+--------+
|      | ColA   | ColB   |
+------+--------+--------+
| Row1 | CellA1 | CellB1 |
| Row2 | CellA2 | CellB2 |
| Row3 | CellA3 | CellB3 |
+------+--------+--------+
share|improve this answer
    
I don't always want to fire up Excel to put in a table. Would you consider allowing other delimiters (comma, 2+ spaces, semicolon...) to be used in your utility? –  Kevin Vermeer May 9 '11 at 22:19
1  
this is excellent! referenced at meta.stackexchange.com/questions/96125/… –  Jeff Atwood Jun 23 '11 at 9:08
    
@KevinVermeer: I made it so that you can type the tab character in the edit box. Does that solve the problem, or do you still want other delimiters? –  Senseful Dec 22 '11 at 2:00
    
@Senseful - Nope, that's fine! One delimiter is plenty. –  Kevin Vermeer Dec 22 '11 at 14:28
3  
thanks again for this, and kudos for keeping it up to date and adding features too. Can't upvote hard enough.. –  Jeff Atwood Jan 23 at 2:01

While not especially for tables, Asciiflow is a generic tool for this kind of thing.

share|improve this answer
    
This is amazing. Thank you for this link. –  Yves Junqueira Oct 2 '12 at 12:35

The following utility (created by me) may come in handy for such scenarios : http://lorefnon.me/plain-text-table/

screenshot

Usage is fairly simple and intuitive, thanks to the spreadsheet like editing capabilities of handsontable . Also it handles multi-line cells neatly.

share|improve this answer
    
Looks very nice. I would add a screenshot to make it stand out more !! –  Jacob Jan Tuinstra Jan 18 at 14:43
    
@JacobJanTuinstra Thanks for the feedback. Updated the answer as per your suggestions. –  lorefnon Jan 18 at 15:32

I don't know any but if they are going to use it why not creating something better with ASCII, let's say something like this:

 ╔══════╤═══════════╤════════╗
 ║  ID  │ Name      │  Age   ║ 
 ╠══════╪═══════════╪════════╣
 ║  1   │ John      │   24   ║ 
 ╟──────┼───────────┼────────╢
 ║  2   │ Jeff      │   19   ║ 
 ╟──────┼───────────┼────────╢
 ║  3   │ Joel      │   42   ║ 
 ╚══════╧═══════════╧════════╝
share|improve this answer
3  
By not being ASCII there are places where that won't render correctly. The point of using ASCII in the way the OP did is to give it the best chance of rendering correctly in a wide range of environments. It may be low fidelity, but given a mono-spaced font it WILL always look the same. Your version is dependent on a LOT more stuff. –  Michael Kohne Sep 15 '10 at 10:51
    
@Michael It is ASCII :D and it works where stackexchange works.. :) But I don't think that they will implement that.. –  Lipis Sep 15 '10 at 18:53
2  
The table is definitely not ASCII. The double-line corners have character codes above 127, and ASCII is a 7-bit encoding, see en.wikipedia.org/wiki/ASCII . –  Gintautas Miliauskas Sep 16 '10 at 10:54
3  
@Gintautas you're right.. but still it works where stackexchange works.. :) Anyways this is not even an answer for this question.. I can easily implement this service and post it as an answer.. because couldn't find anything for it :D –  Lipis Sep 16 '10 at 13:29
    
Have you implemented this service? –  Kevin Vermeer May 9 '11 at 22:20

Found this one while looking for simple circuit diagrams , it is the predecessor

Ascii Paint

You draw and ascii art appears. If you are not good with drawing tables in Word, this might be a bit hard, but it was fun.

share|improve this answer

Since the OP specifically says:

It doesn't have to use ASCII (it can be Unicode)

I thought I'd share the link for the (mysql / unicode / html) table generator created by a SE user for use on SE I found on superuser. I found it quite useful to get unicode tables (which I sometimes prefer over the Windows-1252 compatible "ASCII" art). And this tool lets you compare the outputs, as well as getting a HTML formatted table, too.

Example to show my workflow:
I'm making a web app for my bookkeeper to calculate sales tax and I am doing math on months and quarters so that the tool always automatically displays "last quarter's sales tax info". Since I'm always thinking of arrays starting with 0, I needed to embed a simple table outlining the months in each quarter to keep the values sorted in my head.

1) To get the table started, I used this generator (listed on both this and the other QA) with its Excel-like input interface to actually create the data, as the unicode tool wants pre-formatted text. I type in the values then select them and CTRL-C to get my tab delimited table:

Quarter Numbers Names
Q1  1, 2, 3 Jan, Feb, Mar
Q2  4, 5, 6 Apr, May, Jun
Q3  7, 8, 9 Jul, Aug, Sep
Q4  10, 11, 12  Oct, Nov, Dec

2) went to senseful's generator and pasted into the input area. I played with each of the 3 options and I liked the Unicode Art option the best:

╔═════════╦════════════╦═══════════════╗
║ Quarter ║  Numbers   ║     Names     ║
╠═════════╬════════════╬═══════════════╣
║ Q1      ║ 1, 2, 3    ║ Jan, Feb, Mar ║
║ Q2      ║ 4, 5, 6    ║ Apr, May, Jun ║
║ Q3      ║ 7, 8, 9    ║ Jul, Aug, Sep ║
║ Q4      ║ 10, 11, 12 ║ Oct, Nov, Dec ║
╚═════════╩════════════╩═══════════════╝

Note that for the table to show up correctly on a web page, the character set must be specifically set for UTF-8:

<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>

share|improve this answer
    
You know that the accepted answer is the tool you suggest and it is posted by the author you mention, right ? :) –  Gaby Apr 6 at 10:07
    
yes... between this and another answer, I wanted to show my workflow, since either by themselves didn't help my situation and would have required transcribing the whole table. Together, I didn't need to type all that info in by hand. –  Chris K Apr 10 at 20:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.