HTML table code generator

To create the code for an HTML table, please provide:

  • table's width in percentages or pixels,
  • number of rows desired,
  • number of columns desired,
  • border thickness,
  • cellpadding value,
  • cellspacing value, and
  • table placement/alignment

Then, click on "Generate HTML <table> code" to see the code.

Table width:* in
Number of rows:*
Number of columns:*
Border thickness:
Table alignment:
Align left Align center Align right
left (default) center right
  * Indicates required