{"$schema":"https://toolsly.tools/schemas/tool-manifest-v1.json","generated":"2026-05-20T20:47:38.287Z","discovery":{"catalog":"https://toolsly.tools/tools.json","llmsTxt":"https://toolsly.tools/llms.txt","sitemap":"https://toolsly.tools/sitemap.xml"},"relatedTools":[{"slug":"qr-code-reader","name":"QR Code Reader","url":"https://toolsly.tools/qr-code-reader"},{"slug":"qr-code-generator","name":"QR Code Generator","url":"https://toolsly.tools/qr-code-generator"},{"slug":"file-to-hex","name":"File to Hex Dump","url":"https://toolsly.tools/file-to-hex"},{"slug":"hex-to-file","name":"Hex to Binary File","url":"https://toolsly.tools/hex-to-file"},{"slug":"wifi-qr-code-generator","name":"Wi-Fi QR Code Generator","url":"https://toolsly.tools/wifi-qr-code-generator"},{"slug":"vcard-qr-code-generator","name":"vCard QR Code Generator","url":"https://toolsly.tools/vcard-qr-code-generator"},{"slug":"barcode-generator","name":"Barcode Generator","url":"https://toolsly.tools/barcode-generator"},{"slug":"base64-encode","name":"Base64 Encode","url":"https://toolsly.tools/base64-encode"}],"kind":"utility","slug":"json-to-python-class","name":"JSON to Python Class","description":"Generate Python @dataclass, pydantic BaseModel or TypedDict definitions from any JSON payload.","longDescription":"Paste any JSON object or array and generate matching Python classes. Choose between standard library `@dataclass`, `pydantic.BaseModel`, or `typing.TypedDict`. Type hints use `str`, `int`, `float`, `bool`, `Optional[X]`, `List[X]` and `Dict[str, Any]`. Nested objects become separate named classes. Field names are sanitized to snake_case; the original JSON key is preserved via an alias where the style supports it. Runs entirely in your browser — free, online, no upload.","category":"text","categoryName":"Text & Encoding","keywords":["json to python","json to python class","json to dataclass","json to pydantic","json to typeddict","json to pydantic model","python class from json","pydantic generator","json to python types","json to python online","json to python free","json codegen python","infer python types from json"],"badge":"Generator","url":"https://toolsly.tools/json-to-python-class","inputs":[{"type":"text","key":"json","label":"JSON","placeholder":"{\"name\": \"Ada\", \"age\": 36}","multiline":true,"monospace":true},{"type":"text","key":"rootName","label":"Root class name","defaultValue":"Root"},{"type":"select","key":"style","label":"Style","defaultValue":"dataclass","choices":[{"value":"dataclass","label":"@dataclass"},{"value":"pydantic","label":"pydantic BaseModel"},{"value":"typeddict","label":"TypedDict"}]}],"outputs":[{"key":"code","label":"Python","multiline":true}],"invocation":{"webUi":"https://toolsly.tools/json-to-python-class","api":null,"notes":"Currently invoked via the web UI at `webUi`. Inputs are form fields; outputs are structured text values. A remote MCP/REST API is planned."}}