Sarva
tools
Home
All Tools
Categories
About
Categories
/ Data
Data
Format, convert, validate and transform JSON, CSV, XML and more
Format & minify
CSS Formatter & Minifier
Format CSS into readable, indented rules, or minify it for production.
CSS Minifier
Shrink CSS by removing comments and whitespace, leaving strings, url() values and calc() spacing intact, and see the size saved.
CSV Formatter & Validator
Validate CSV data and convert it to JSON.
GraphQL Formatter
Format GraphQL queries, mutations, fragments and schema definitions with clean indentation, spaced arguments and one field per line.
HTML Formatter & Minifier
Format HTML with proper indentation, or minify it for production.
HTML Minifier
Shrink HTML by collapsing whitespace and removing comments, while leaving pre, textarea, script and style content alone. Inline CSS is minified too.
JavaScript Formatter
Beautify minified or messy JavaScript with consistent indentation and line breaks. Strings, template literals, regular expressions and comments are left untouched.
JavaScript Minifier
Shrink JavaScript by removing comments and whitespace, keeping the spaces and line breaks the code needs. Names are not renamed, so the result is safe to use as it is.
JSON Formatter & Validator
Format, validate and minify JSON with clear, inline error messages.
SQL Formatter
Beautify SQL queries with consistent indentation and line breaks.
SQL Minifier
Remove comments and extra whitespace from a SQL query, leaving string literals untouched.
SVG Optimizer
Shrink an SVG by removing the XML header, comments, editor metadata and extra whitespace, and rounding long decimals in paths and coordinates.
XML Formatter & Validator
Format, validate and pretty-print XML with clear error messages.
XML Minifier
Remove comments and the whitespace between tags from XML, keeping CDATA sections and text intact.
YAML Formatter & Validator
Format and validate YAML, and convert it to JSON.
Convert data formats
TXT → JSON
Turn a .env file into JSON. Quotes, export lines, comments and multi-line values are understood.
CSV Delimiter Converter
Switch delimited text between commas, semicolons, tabs and pipes, with correct quoting. Useful when a spreadsheet expects a different separator.
CSV → HTML
Turn CSV into clean, accessible HTML table markup with a header row, scoped headings and an optional class and caption.
CSV → JSON
Turn CSV into a JSON array of objects. The delimiter is detected for you, and numbers and true or false values are typed.
CSV → MD
Turn CSV into an aligned Markdown table for READMEs, issues and docs, with left, centre or right alignment.
CSV to SQL Converter
Generate CREATE TABLE and INSERT statements from CSV for MySQL, PostgreSQL, SQLite or SQL Server, with column types detected for you.
CSV to TSV Converter
Turn comma-separated values into tab-separated values, keeping quoted fields intact.
CSV → XML
Convert CSV into well-formed XML with a root element and one element per row, using your column headings as element names and escaping special characters.
XLSX → JSON
Turn an Excel workbook (.xlsx, .xls or .ods) into JSON, one object per row keyed by the column names, for the first sheet or every sheet.
HTML → CSV
Paste HTML that contains a table and get its rows as CSV, with entities decoded and tags removed.
HTML → JSON
Paste HTML that contains a table and get its rows as a JSON array, using the header cells as keys.
JSON Lines to JSON Converter
Turn JSON Lines (NDJSON) into one JSON array, with the line number of any record that is not valid.
JSON → TXT
Turn JSON into a .env file with upper-case keys joined by underscores, ready for Docker, Vercel and dotenv.
JSON → CSV
Turn a JSON array into CSV for spreadsheets. Nested objects can be flattened into columns, and the delimiter is your choice.
JSON → XLSX
Turn a JSON list of objects into an Excel (.xlsx) file, with nested objects flattened into columns and numbers stored as real numbers.
JSON → HTML
Turn a JSON array into HTML table markup you can paste into a page or an email.
JSON to JSON Lines Converter
Turn a JSON array into JSON Lines (NDJSON), one record per line, for log pipelines and bulk imports.
JSON → MD
Turn a JSON array into an aligned Markdown table for READMEs, pull requests and docs.
JSON → TXT
Turn JSON into a Java .properties file with dotted keys.
JSON → TXT
Turn a JSON object into a URL query string, with encoded values and bracket notation for nested data and lists.
JSON to SQL Converter
Generate CREATE TABLE and INSERT statements from a JSON array for MySQL, PostgreSQL, SQLite or SQL Server.
JSON to TOML Converter
Turn JSON into TOML for Cargo, pyproject and other config files.
JSON → XML
Turn JSON into well-formed XML, with attributes, repeated elements and an optional XML declaration.
JSON → YAML
Turn JSON into clean, readable YAML for config files, Kubernetes manifests and CI pipelines.
MD → CSV
Pull a table out of Markdown and turn it into CSV or JSON, handling escaped pipes and line breaks.
TXT → JSON
Turn a Java .properties file into nested JSON. Escapes, comments and continued lines are handled.
TXT → JSON
Turn a URL or query string into JSON. Repeated keys become lists and bracket notation becomes nested objects.
SQL to ER Diagram
Turn CREATE TABLE statements from PostgreSQL, MySQL, SQLite or SQL Server into an entity relationship diagram with keys, as SVG and Mermaid code.
TOML to JSON Converter
Turn TOML into JSON, with errors that name the line. Tables, arrays of tables and inline tables are supported.
TSV to CSV Converter
Turn tab-separated values, such as text copied from a spreadsheet, into CSV with proper quoting.
XML → CSV
Convert repeated XML elements into CSV rows, with each attribute and child element as a column and nested elements named with dots.
XML → JSON
Turn XML into JSON. Attributes, repeated elements and numbers are handled, and errors say what is wrong.
YAML → JSON
Turn YAML into JSON, with clear errors that point to the line that is wrong.
JSON to code
JSON to C# Class Converter
Turn a JSON sample into C# classes with System.Text.Json attributes, List collections and nullable value types.
JSON to Dart Converter
Turn a JSON sample into Dart classes with fromJson and toJson methods, ready for Flutter.
JSON to Go Struct Converter
Turn a JSON sample into Go structs with json tags, pointer fields for optional values and omitempty.
JSON to GraphQL Converter
Turn a JSON sample into GraphQL type definitions with required fields marked and lists typed.
JSON to Java Converter
Turn a JSON sample into Java records annotated for Jackson, with boxed types for optional values.
JSON to JSON Schema Converter
Infer a JSON Schema (draft 2020-12 or 07) from a sample, with required fields, nullable types and string formats such as email, date and uuid.
JSON to Kotlin Converter
Turn a JSON sample into Kotlin data classes with kotlinx.serialization annotations.
JSON to Python Converter
Turn a JSON sample into Python dataclasses, Pydantic models or TypedDicts, with snake_case field names.
JSON to Rust Struct Converter
Turn a JSON sample into Rust structs with Serde derives, renamed fields and Option for optional values.
JSON to Swift Converter
Turn a JSON sample into Swift Codable structs, with CodingKeys where the JSON name differs.
JSON to TypeScript Converter
Paste a JSON sample and get TypeScript interfaces or types. Nested objects get their own names, and fields missing from some items become optional.
JSON to Zod Schema Converter
Turn a JSON sample into a Zod schema and its inferred TypeScript type for validating API data at runtime.
JSON tools
jq Online Tester
Run jq filters on JSON in your browser, with pipes, select, map, reduce, paths, regex and dates, and the -r, -c, -s, -n and --arg options.
JSON Diff
Compare two JSON documents and list every value that was added, removed or changed, each with its path. Optionally ignore the order of list items.
JSON Flatten
Flatten nested JSON into a single level with keys like user.address.city, using any separator.
JSON Key Sorter
Sort the keys of every object in a JSON document, A to Z or Z to A, so files diff cleanly and are easy to scan.
JSON Merge
Combine two JSON documents into one, merging objects deeply. Lists can be replaced, joined, merged without duplicates or merged by position.
JSON Minifier
Remove all spaces and line breaks from JSON to make it as small as possible, and see how many bytes you saved.
JSON Schema Validator
Check a JSON document against a JSON Schema and see every problem with its path. Covers types, required fields, formats, patterns, ranges, $ref, allOf, anyOf, oneOf and if/then/else.
JSON Statistics
See how big a JSON document is: bytes, nesting depth, number of keys, objects, lists and values by type, and the most common keys.
JSON String Escape / Unescape
Turn any text into a safe JSON string with quotes, line breaks and unicode escaped, or turn an escaped JSON string back into plain text.
JSON Unflatten
Turn flat JSON with keys like user.address.city back into nested objects and lists.
JSONPath Tester
Run JSONPath expressions against your JSON and see each match with its path. Filters, wildcards, slices and recursive descent are supported.
CSV tools
CSV Column Extractor
Keep only the columns you want, by name or number, in the order you want, and drop the rest.
CSV Compare
Compare two CSV files and see the rows only in one, only in the other, and, with a key column, the rows whose values changed.
CSV Duplicate Remover
Remove repeated rows from CSV, comparing whole rows or only the columns you choose, with or without matching case.
CSV Filter
Keep only the CSV rows where a column contains, equals, starts with, ends with or matches a value, or is above or below a number.
CSV Merge
Stack two CSV files into one. Columns are matched by name, so the files do not need the same column order.
CSV Sorter
Sort CSV rows by any column, A to Z or Z to A, as text or as numbers, and copy the sorted CSV.
CSV Splitter
Split a large CSV into several files of a set number of rows, with the header repeated in each, and download them one by one or all in a ZIP.
CSV Statistics
Get a summary of every column: filled and empty cells, unique values, and the minimum, maximum, sum and mean for number columns.
CSV Transpose
Turn CSV on its side: rows become columns and columns become rows.
CSV Viewer
Paste CSV and see it as a clean table, with the delimiter detected, the row and column counts and optional sorting.
Validate
.env File Validator
Find mistakes in a .env file: lines without =, duplicate variables, unclosed quotes, unquoted values with spaces, odd variable names and trailing spaces.
Base64 Validator
Check that text is valid Base64, see which alphabet it uses, whether the padding is right, and what it decodes to.
Credit Card Number Validator
Check a card number with the Luhn algorithm, see which network it belongs to and whether the length fits. Works on your device, so the number is never sent anywhere.
CSV Validator
Check that every row in a CSV file has a consistent number of columns.
Domain Name Validator
Check that a domain name or hostname follows the rules for labels, length and characters. Paste a domain or a whole URL and one or many lines.
Email Address Validator
Check email addresses against the syntax rules and see exactly what is wrong. Paste one address or a whole list, one per line.
HTML Validator
Find unclosed and mismatched tags, duplicate ids, images without alt text, links without href, obsolete tags and missing page basics, each with its line number.
IBAN Validator
Check an IBAN for the right length for its country and a correct mod 97 check, and see it in the standard grouped form.
IP Address Validator
Check IPv4 and IPv6 addresses and see what kind they are: private, public, loopback, link-local or multicast, with the decimal, hex and binary forms. Paste one or many.
ISBN Validator
Check an ISBN-10 or ISBN-13 check digit and convert between the two forms.
JSON Lines Validator
Check that every line of a JSON Lines (NDJSON) file is valid JSON and see the line number of each bad record.
JSON Validator
Check whether a JSON document is valid, with the exact line and column of any error.
JSON5 Validator
Check JSON5 with comments, trailing commas, single quotes and unquoted keys, see where it breaks, and convert it to plain JSON.
MAC Address Validator
Check a MAC address and rewrite it in every common notation: colons, hyphens, Cisco dots and plain digits. It also shows the vendor prefix and whether it is unicast, multicast or locally assigned.
Semantic Version Checker
Check semantic versions, sort a list, bump a version, or test versions against an npm-style range such as ^1.2.3 or >=2.0.0 <3.
TOML Validator
Check that TOML is valid and see the exact line of any mistake, such as a duplicate key, an unquoted string or an unclosed table header.
URL Validator
Check whether a URL is valid and break it down into protocol, host, path and query.
UUID Validator
Check that a UUID or GUID is well formed and see its version and variant. For version 1 and version 7 it also shows when the UUID was created.
XML Validator
Check whether an XML document is well-formed, with a clear error message.
XSD Validator
Check an XML document against an XSD schema: elements and their order, required attributes, data types, enumerations, patterns and lengths.
YAML Validator
Check whether a YAML document parses correctly, with a clear error message.
Other categories
Documents
Images
Audio
Video
OCR
Finance
Calculators
Converters
Developer
Text
Workflows
Home
Tools
Categories
Workflows
Offline