Skip to content

About JSONConvert

A free JSON converter that runs in your browser, built by .

Who builds it

Ankit Aglawe, AI engineer from Manchester. He started this site in March 2026 because the converters he was using kept getting optional and nullable fields wrong.

How the converters work

Everything runs in your browser. When you paste JSON, JavaScript on the page converts it; there is no server that receives your data and no API call. The code generators (TypeScript, Zod, Pydantic, Go, Rust, Swift, Java, Kotlin, C#, Dart, PHP, JSON Schema, SQL) share one inference engine. It reads every element of every array instead of the first, tracks a missing key (optional) separately from a null value (nullable), detects small closed sets of strings as enums, and gives each distinct object shape exactly one name, so the output never references a type it did not define.

How the output is tested

A correctness suite runs before every converter change ships. It feeds a set of awkward fixtures (nullable and optional fields, mixed arrays, reserved-word keys, deep nesting, enums) through every generator and checks properties, not snapshots: no input key is dropped, output is byte-identical across runs, generated TypeScript compiles under tsc --strict, Go, Swift and Java compile, generated Zod, Pydantic and PHP models accept the JSON they were built from, JSON Schema output validates its source with Ajv, and SQL output executes in SQLite and reads back the same rows. Rust, Kotlin, C# and Dart are checked for dropped keys, determinism and declared types, but not compiled.

What it does not do

Type inference from examples is a guess from the data you paste. If a field is always null in your sample, or always a whole number when it can really be a float, the generated type will reflect your sample, not your API contract. Each tool page lists the edge cases that matter for that language. JavaScript also cannot hold integers above 2^53 exactly, so very large numeric ids lose precision in any browser-based tool, this one included.

Privacy

No accounts, no ads and no tracking cookies. Page views are counted without cookies, as the privacy policy describes. Your JSON is never sent anywhere. The only thing stored is your theme preference, in your browser.

Contact

Found a wrong type, a crash or a missing edge case? Send the smallest JSON that reproduces it through the contact details on ankitaglawe.com. Bug reports with an input and the expected output get fixed first, and each fix adds a fixture to the test suite.

More from us

Other free tools by the same author: