CSV Filter & Sort Tool
Filter and sort CSV data with simple rules, no software needed
CSV Filter & Sort Tool
The CSV Filter & Sort Tool lets you query plain-text CSV data directly in your browser — no spreadsheet software, no database, no installation required. Paste your CSV, write filter rules in a simple syntax, specify sort columns, and get filtered results instantly. Your data never leaves your device.
How to Use This Tool
- Paste your CSV — the first row is treated as the header. Columns are referenced by their header names.
- Write filter rules — use the format
column operator value, separated by semicolons for multiple conditions. Example:age>30; country=USA. - Set sort columns — comma-separated column names to sort by. Prefix with
-for descending order. Example:-score, name. - Set row limit — cap the output at this many rows (0 = unlimited).
Filter Operators
The following operators are supported between a column name and a value:
=and==— exact match (case-insensitive for text)!=— not equal>and>=— greater than (numeric or lexicographic for text)<and<=— less thancontains— substring match (e.g.,name contains Smith)
Multiple rules are ANDed together — a row must satisfy all conditions to appear in the output.
Sort Syntax
Enter comma-separated column names to sort by, in priority order. Add a - prefix for descending:
department, -salary sorts by department ascending, then by salary descending within each department.
Real-World Examples
Sales data: Filter to high-value orders: revenue>=10000; status=closed. Sort by -revenue. Export the result.
Employee directory: Filter department=Engineering; seniority>=3. Sort by name. Use for a department-specific report.
Log files: Filter severity=ERROR, sort by -timestamp to see the most recent errors first.