Generate strongly typed Rust structs with Serde Serialize and Deserialize derives from JSON data. Automatically handles snake_case field renames and nested structs.
Runs entirely in your browser
In Rust, working with JSON usually means Serde — structs annotated with Serialize and Deserialize derives. This generator turns JSON into strongly typed Rust structs with those Serde derives, handling nested structs and renaming fields to snake_case with the appropriate serde rename attributes where the JSON keys differ.
Writing these by hand is exacting: every struct needs the right derives, nested objects need their own types, and JSON keys that are not snake_case require rename annotations to deserialize correctly. Generating from real JSON produces a compile-ready model with all of that handled.
It runs in your browser, so your data is not uploaded. Use it to model an API response in Rust, generate types for JSON config, or scaffold Serde structs from example data.
TechToolsHQ is an independent, reader-supported tech platform. If this free tool saved you time, solved a problem, or helped your workflow, consider supporting our work. Your support helps us keep our utilities 100% free, private, and ad-free for everyone.