TSV Matrix Transposer & Normalizer
Transpose, normalize, and repair delimited matrices locally in your browser
About
Parse TSV, CSV, or custom-delimited matrices with quoted fields, pad irregular rows, fill missing cells with zero, median, or a custom value, normalize rows or columns, skip selected rows or columns, and preview the first 20 output rows.
Examples
Transpose a TSV block
processMatrix("1\t2\n3\t4", { transpose: true }){ matrix: [["1", "3"], ["2", "4"]] }Rows become columns, turning a 2×2 block into its transpose.
Median fill plus z-score
processMatrix("1\t\n3\t5", { fillMissing: "median" }){ matrix: [["1", "3"], ["3", "5"]] }The gap fills with the median of present values (3) before any normalization runs.
About this tool
TSV Matrix Transposer reshapes delimited tables with processMatrix(input, options): parseDelimitedMatrix splits rows on the delimiter (tab by default) with quote handling, pads short rows to the full width, and records one-based irregularRows; options then skip rows/columns, fillMissing (zero/median/custom), normalize (min-max/z-score along rows or columns), and transpose the result.
Missing-value filling uses the median of all present numbers (zero when no numbers exist, customFill for custom mode), and z-score normalization applies population standard deviation per group with a zero-spread guard that emits 0. The result bundles matrix, inputRows, outputRows, columns, warning, and a truncated flag when maxRows clips the input.
Parsing is deterministic and warning-explicit: irregular rows pad with empty strings and produce a warning naming the affected rows, while regular input yields a null warning — all client-side with no uploads.
How to use this tool
Paste the table
Supply tab-separated text (or set delimiter, e.g. ";") — quoted cells with embedded delimiters are handled.
Fill gaps and normalize
Choose fillMissing zero/median/custom and an optional min-max or z-score normalization along rows or columns.
Transpose the matrix
Enable transpose to swap rows and columns; transposing twice returns the original layout.
Check warnings
Read irregularRows and warning for padded rows, and truncated when maxRows clipped the input.
Use cases
Reorienting spreadsheet exports
Flip row-oriented TSV dumps into column-oriented form for charting or database import.
Cleaning ragged pasted tables
Pad irregular rows and fill gaps with zero, median, or a custom value before analysis.
Normalizing feature columns
Apply z-score or min-max scaling per column so ML features share a common range.
Common mistakes
Mistake:Assuming z-score uses sample standard deviation.
Fix:Spread is population standard deviation (divide by N), and constant columns normalize to 0.
Mistake:Expecting one-based skip indexes to behave as zero-based.
Fix:skipRows and skipColumns accept 1-based positions (0 also works as literal index zero) — verify which row vanished.
Frequently asked questions
What does this tool do?
It reshapes delimited tables with processMatrix(input, options): quote-aware parsing, irregular-row padding, zero/median/custom gap filling, min-max or z-score normalization along rows or columns, and an optional transpose.
How are missing cells and z-scores computed?
Gaps fill with the median of all present numbers (customFill for custom mode, 0 when nothing is numeric). Z-scores use population standard deviation per group, and constant groups normalize to 0.
Is my table uploaded or stored?
No. Parsing, filling, normalization, and transposition run fully client-side.
What do the warning and truncated flag mean?
The warning names one-based irregularRows that were padded to full width (null when input is regular). Truncated is true when maxRows clipped the input — raise maxRows to process everything.
Related guides
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
AI Function Calling Schema Generator
Generate function calling JSON schemas from TypeScript interfaces
Algorithm Arena & Data Structure Visualizer
Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.
Ansible Playbook Generator
Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML