JSON to Go Struct

Generate Go structs in your browser

Paste JSON and generate Go structs. Field names are exported and CamelCased from snake_case or kebab-case keys, types are inferred (string, int, float64, bool, interface{} for null, nested structs for objects, slices for arrays), and each field keeps a json struct tag with the original key. Arrays of objects merge their fields into one struct. Nothing leaves this page.

Nullable fields
Nested objects
All parsing and code generation happen locally. Your JSON is never sent to any server.
Go structs