format · validate · convert · runs locally

JSON to Python

Paste JSON and get Python TypedDict classes with inferred types and nested classes, ready to import from typing. Runs in your browser.

Frequently asked questions

What does it generate?

typing.TypedDict classes with inferred field types (int, str, bool, List[...], nested classes).

Can I use dataclasses instead?

The output uses TypedDict; converting to a @dataclass is a small manual tweak.