Table to wikitable
Paste cells from a spreadsheet: the Wikipedia table code is generated, sortable and with a caption if you want one.
Results
How to use the table to wikitable converter
A table copied from a spreadsheet or CSV turned into a sortable wikitable with a caption.
-
Paste the table
From Excel, Google Sheets or a CSV.
-
Choose the options
Header, sorting, alignment.
-
Copy the result
It is ready to paste wherever you need it.
About the table to wikitable converter
The separator (tab, semicolon or comma) is detected automatically. Numbers can be right-aligned and formatted with formatnum, which shows thousands separators according to the wiki’s language.
The “sortable” class adds sort arrows to every column.
Frequently asked questions about the table to wikitable converter
How do I merge cells?
Add rowspan or colspan to the cell after generating the code, for example colspan="2".
Why use formatnum?
So that numeric sorting works and numbers display with the separators suited to the language.
Does the result follow Wikipedia’s rules?
It follows the common syntax and conventions. The guidelines of each language edition take precedence and can change.
Is the tool free?
Yes, it is completely free and needs no sign-up.