Friday, October 15, 2010

Format Text as a Table

Here's a simple tool that lets you format text as a table. Simply enter in tab-delimited text (e.g. by copying from Excel), then press "Create Table".

Input:

Header style:
Style:
MySQL: outputs using Ascii characters.
Unicode Art: uses unicode chars that makes it look more like a table.
HTML: outputs a normal html table.

Output:

  • 2/16/13:
    • HTML table's HTML code output added.
  • 1/13/12:
    • Parse table added.
    • Improved code and layout.
  • 1/1/11:
    • Auto Align: number columns become right-aligned, and headers are centered.
    • Spreadsheet option added: adds letters on top and numbers on the side.

30 comments:

  1. Hi, great work, i was searching very long for such a online solution!!!

    ReplyDelete
  2. cool, thanks, used it for stackoverflow

    ReplyDelete
  3. What a cool app! A generous soul to boot. thanks!

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Started to use these tables into C# Comments :) Thanks!

    ReplyDelete
  6. Thanks for This Great Online Tool!
    How can I download the table output?

    ReplyDelete
  7. Very senseful solution indeed, but how can i copy the code for the table? Thanks!

    ReplyDelete
  8. @democluj: I just added a way to copy the HTML table's code. Hope that helps!

    ReplyDelete
  9. Thanks but I think I could have done that with "Inspect Element" feature of Google Chrome (any way much easy now with copy/paste in two clicks. Thanks!). I was wondering if I could somehow copy the Unicode Art table code to make posts with tables on StackOverFlor for example...I've tried to simply just copy it but it's not right.

    ReplyDelete
  10. Sorry about last post (made me look a liitle stupid)... I just figured it out (for StackOverFlow post). Just put the code copied from here in between pre code here /pre. Put pre and /pre between bracketts.

    ReplyDelete
  11. Wow. it's really excellent. just pasted a quite odd excel table and worked perfect. Even better if it could the exact wiki/markdown markup but i'll fix that with a text editor. Thanks!!

    ReplyDelete
  12. Thank for the work! Just what I was looking for!

    ReplyDelete
  13. This is such a great little tool! Thanks so much :) Definitely saved me some time making my own fancy table

    ReplyDelete
  14. Thanks for this very useful tool. I use it almost every week to make ascii tables for text emails at [Express Sign Products](http://www.expresssignproducts.com).

    ReplyDelete
  15. Great tool. Shame it doesn't look as good in Notepad text file. Is there a way to fix that? It does look great in NoteTab Pro but most of my users have NotePad.

    Thanks!

    ReplyDelete
    Replies
    1. A great tool indeed! The MySQL output looks fine in Notepad for me. Are you using a fixed-width font? If you are unsure, go to Format -> Font... and select "Lucida Console" or "Consolas" and see if that fixes the problem.

      Delete
  16. Thanks, this works great!

    Is there any way to specify a column width and have it wrap the text as needed (preferably keeping whole words together)?

    ReplyDelete
  17. Very cool. I forked this for my own needs, I also added Github Markdown to the list of formats: http://ozh.github.io/ascii-tables/

    ReplyDelete
  18. This is fantastic, thanks!

    btw, you might want to add a note somewhere about unicode requiring UTF-8 for webpages, added by using a META tag and then setting:
        content='text/html; charset=UTF-8' http-equiv='Content-Type'

    ... and that unicode probably won't work on windows without users changing fonts.

    ReplyDelete
  19. dude, this is amazing. exactly what i was looking for! thanks so much.

    ReplyDelete