Paste any JSON and get ready-to-use Python @dataclass definitions. Types are inferred recursively with typing hints: nested objects become their own named dataclasses (from the field name), arrays become List[T] with an element type inferred from their items, and null values become Optional[...]. Numbers become int or float based on their value; true/false become bool; strings become str. Field names are converted to snake_case and the root class name is configurable, defaulting to Root.
The output imports dataclass and the needed typing helpers so it runs as-is. The whole tool is plain JavaScript running locally in your browser — no build step, no server, no upload — so it is safe for private or proprietary payloads.