Table Transformer
Sort, reorder, and transpose Markdown tables without hand editing
Paste a GFM pipe table, then sort by any column, move or remove columns, or transpose the whole table. Output a clean GFM table ready to paste back into your README, docs, or release notes.
4 column(s) · 4 row(s)
Name | Role | Joined | Active |
|---|---|---|---|
| Carol | Admin | 2021 | yes |
| Ada | Editor | 2024 | yes |
| Bob | Reviewer | 2023 | no |
| Diana | Editor | 2024 | yes |
How to use the table transformer
- Paste Markdown containing a GFM pipe table.
- The interactive grid below shows the table with per-column controls:
- ↑ / ↓ sort the rows ascending or descending by that column
- ← / → move the column left or right
- 🗑 remove the column entirely
- Transpose rotates the entire table so rows become columns and vice versa.
- Copy result to grab the rebuilt Markdown.
Common transformations
- Sorting a feature matrix by recency, popularity, or alphabetical order.
- Removing a column that's no longer relevant after a feature redesign.
- Reordering columns so the most important info is leftmost (better mobile rendering).
- Transposing when you realize the data reads more naturally with columns and rows swapped — typical for comparison tables.
Sorting gotchas
- Numeric vs text detection is per-column. A column with mixed '10', '2', '-' will sort as text since '-' isn't a number.
- Date sorting treats dates as text. ISO format (YYYY-MM-DD) sorts correctly as text by lucky coincidence; other formats won't.
- Sort is stable — equal values keep their original order. Use this for compound sorts: sort by secondary, then by primary.
Companion tools
- Markdown Table Generator — build a fresh table from scratch.
- CSV ↔ Markdown Table — round-trip with spreadsheets.
- JSON to Markdown — start from a JSON array.
Privacy & data
All transformations run inside your browser. The table never leaves the tab.
Frequently asked questions
- It manipulates a Markdown table without rebuilding it by hand. Sort rows by any column (ascending or descending), move columns left or right, remove columns, and transpose the entire table (turn rows into columns and vice versa).
- The sorter detects numeric columns automatically — if every cell in a column parses as a number, it sorts numerically; otherwise it sorts as text using locale-aware comparison. That means '10' comes after '2' numerically but before '2' as text.
- Column headers, cell contents, and (where possible) alignment markers. After transformation, the output is regenerated as a clean GFM pipe table.
- Convert the CSV to a Markdown table first using the [CSV ↔ Markdown Table](/tools/markdown-csv-table) tool, then transform it here, then convert back. Round-tripping is lossless for flat tabular data.
- Hundreds of rows × dozens of columns easily. The sort and transpose are O(n log n) and O(n × m) respectively — both very fast on modern browsers.
- No. All operations run inside your browser.