format · validate · convert · runs locally

JSON to Go

Paste JSON and get Go structs with json tags, inferred field types, and nested structs. Copy or download the .go. Runs in your browser.

Frequently asked questions

Does it add json tags?

Yes — every field gets a json:"key" tag matching the original key.

How are nested objects handled?

Each nested object becomes its own named struct.