JSON Formatter & Validator
Pretty-print, minify, and validate JSON directly in your browser.
Open tool →Parse comma-separated data with quoted fields, escaped quotes, commas, and line breaks, then export valid formatted JSON.
Try the comma-separated sample with the header option enabled. The first identifier stays 001, the quoted comma belongs to the name, the blank note becomes an empty string, and the doubled quote becomes one quote in the second note.
| Input or check | Expected result or decision |
|---|---|
| 001,"Amina, Ali", | {"id":"001","name":"Amina, Ali","note":""} |
| 002,Omar,"He said ""hi""" | {"id":"002","name":"Omar","note":"He said \"hi\""} |
| Tab- or semicolon-separated source | Export comma-separated CSV first; there is no delimiter selector. |
| Quoted newline inside "First line\nSecond line" | The newline remains inside one field; it does not start another row. See the downloadable input and expected JSON. |
| id,id followed by 001,002 | Rejected: Header names must be unique. |
Download the quoted-newline CSV ยท Compare the expected JSON
Quote fields containing commas and double any quote inside a quoted field. Fix inconsistent rows in the source instead of silently discarding data.
These tools open separately; inputs are not transferred.
Pretty-print, minify, and validate JSON directly in your browser.
Open tool →Compare two texts line by line and highlight additions and removals.
Open tool →Convert text to upper, lower, title, sentence, camel, snake, and kebab case.
Open tool →Convert text to Base64 and back, entirely in your browser.
Open tool →CSV text is parsed in your browser and is not uploaded to an Anvil processing server.
The parser targets common comma-delimited CSV. Delimiter variants, inconsistent row widths, spreadsheet formulas, encodings, and very large datasets need separate checks.
Fields may be quoted, contain commas or line breaks, and escape a quote as two consecutive quote characters. UTF-8 text and CRLF or LF line endings are supported.
No. CSV has no reliable type metadata, so values remain strings to avoid changing identifiers, leading zeros, dates, or large numbers.
This parser uses commas; it has no separator selector. Check quoted fields, header uniqueness, and the column count in each row. Start with the header and one failing row to isolate the issue. Converted values remain strings, so check numeric or boolean requirements in the receiving application.
Values such as postal codes or account identifiers may look numeric but need to remain text. Inspect the resulting JSON types before importing the data into another system.
The parser expects comma-separated values. Export or prepare CSV first, quote fields that contain commas, and use consistent column counts.
Debug API Data with JSON, Base64, and Browser Tools
Work through JSON types, encoding, URL components, JWT claims, hashes, CSV conversion, and timestamps with small reproducible examples.
CSV Edge Cases: Quotes, Unicode, Newlines, and Blank Fields
Thirteen recorded CSV conversions show preserved strings, rejected headers, quoted newlines, and a semicolon-delimiter trap.