Validate a CSV File Online

Validate CSV against a Frictionless Table Schema or column rules: types, required, unique, ranges, regex, enums, Vietnamese phone / CCCD / tax code.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Send a CSV (csv text, raw body or file; the delimiter and old Vietnamese encodings are detected) and either rules — {"email": "required|email", "luong": "integer|min:0", "sdt": "vn_phone", "phong": "enum:KT,HR"} — or a Frictionless schema (fields with type, format, constraints required / unique / minimum / maximum / minLength / maxLength / pattern / enum, plus primaryKey, uniqueKeys and missingValues).

Types: string, integer, number (also 1.234.567,5 style), boolean, date (format such as %d/%m/%Y, or any), datetime, time, year, yearmonth, duration, geopoint, object, array; string formats email, uri, uuid and Vietnamese checks: vn_phone (mobile / landline, +84 forms), vn_cccd (12-digit citizen ID with province code and birth year), vn_tax_code (10 or 13 digits with the check digit), vn_bank_account, vn_plate.

The report gives valid, error counts by code, per-column summaries (errors, missing values, min / max) and up to max_errors (1,000) errors with row number (as in a spreadsheet, header = row 1), column, field, value and message. Structure errors — missing or extra columns, duplicate headers, rows with too few / many cells, blank rows — are always checked. Up to 500,000 rows; nothing is stored.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/csv-validate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"csv":"ma_nv,ho_ten,sdt,mst,luong\nNV001,Nguyễn Văn An,0912345678,0100109106,15000000\nNV002,,0123456,0100109107,-5\n","rules":{"ma_nv":"required|unique","ho_ten":"required","sdt":"vn_phone","mst":"vn_tax_code","luong":"integer|min:0"}}'

API documentation → Get a free API key

FAQ

Rules or schema?

rules is a compact syntax for quick checks; schema follows the Frictionless Table Schema standard and adds primary / unique keys, missing values and number options (decimalChar, groupChar).

Which row numbers are reported?

Spreadsheet numbering: the header is row 1, the first data row is row 2.

Can it check Excel files?

Export the sheet as CSV first, or convert it with /v1/xlsx-convert?format=csv.