HTML Table Sorter
Paste an HTML table, sort its rows by any column — numerically or alphabetically — and export the result.
How the HTML Table Sorter works
Paste any HTML snippet that contains a <table> element — copied straight from a webpage, a report, or hand-written markup. Click Parse Table and the tool reads the header row (from <thead> or the first row of <th> cells) and every data row, then renders an interactive preview. Click any column header to sort the rows by that column — click it again to flip between ascending and descending order.
Sorting auto-detects whether a column holds numbers (including values formatted like $1,200.50 or 92%) or text, so numeric columns sort by magnitude instead of alphabetically — but you can force Numeric or Alphabeticalmode from the dropdown if auto-detection guesses wrong. Alphabetical sorting is locale-aware and case-insensitive, and treats embedded numbers naturally (so "Item 2" sorts before "Item 10").
Once sorted, copy the regenerated <table> markup or download it as a standalone .html file. All parsing and sorting happens entirely in your browser using the native DOMParser — your table data is never uploaded anywhere.
Private & free — this tool runs entirely in your browser.