Convert
Convert CSV to JSON
The header row becomes the keys; each row becomes an object.
The parser follows RFC 4180: a field may be wrapped in double quotes, a doubled quote inside one is a literal quote, and a newline inside quotes belongs to the field rather than ending the row. Splitting on commas handles none of those, which is why spreadsheet exports come out wrong in simpler tools.
The separator is detected from the first line — comma, semicolon or tab — because a spreadsheet in a European locale writes semicolons and a copy out of Excel writes tabs. Which one was assumed is stated at the end of the output.
Every value stays a string. Turning “007” into 7 or a date into a timestamp would corrupt identifiers and lose leading zeros, and whatever consumes the JSON is the right place to decide what a column means.
Questions
Why are numbers strings?
Because guessing turns a phone number into an integer and drops the leading zero. Type conversion belongs where the data is used.
What if my file has no header row?
The first row is always treated as the header. Without one, the first data row becomes the keys.
What about duplicate column names?
JSON keys must be unique, so a repeat gets _2 appended rather than silently overwriting the first column.
Is the file uploaded?
No. It is parsed in the tab and never sent.
More text and code
- Word counterWords, characters, sentences and reading time, counted as you type.
- Case converterTitle Case, sentence case, camelCase, snake_case and the rest, at once.
- JSON formatterValidates JSON and prints it indented, with the parser’s own error.
- Base64Encode text to base64 and decode it back, UTF-8 safe.
- URL encoderPercent-encode text, or read what a %-encoded string says.
- Hash generatorSHA-256, SHA-1 and SHA-512 of any text, from the browser’s own crypto.
- UUID generatorFive version-4 UUIDs from the browser’s random source, ready to copy.
- Timestamp converterEpoch seconds, milliseconds, ISO 8601, UTC and your own time zone.
- Colour converterHEX, RGB and HSL from one value, with WCAG contrast ratios.
- Slug generatorA clean URL slug from any title, accents and punctuation handled.
- Text diffTwo texts, line by line: what was added and what was removed.