JSON to Go Struct
Generate Go structs with JSON tags and inferred field types from JSON.
This tool runs entirely in your browser. Your input is never uploaded.
JSON
Go struct
Paste some JSON first.
What is this tool?
Generate Go structs from JSON with exported fields, json:"..." tags, and inferred types: int64 or float64 for numbers, bool, string, any for null, nested struct types, and []T for arrays.
How to use it
- Paste JSON.
- Optionally change the root type name (default
Root). - Copy the generated structs or download them as
models.go.
Privacy
Conversion runs entirely in your browser.