Convert JSON to Go structs (with json tags)
Generate Go structs (with json tags) from a JSON example, in your browser.
🔒 100% client-side — no data sent
Turn any JSON sample into complete Go structs, with json tags generated automatically. A real time-saver for consuming an API or unmarshaling data without writing structs by hand. The tool runs entirely in the browser, with no data ever uploaded.
What is it for?
- ▸ Generate Go structs to unmarshal a REST API response
- ▸ Effortlessly create the types needed for json.Unmarshal
- ▸ Quickly prototype a Go client from a sample payload
- ▸ Convert a JSON config file into Go types
FAQ
Are the json tags added automatically?
Yes. Each field gets a json tag matching its original key, ready to use with encoding/json.
How are types inferred?
Values are analyzed to pick the most suitable Go type (string, int, float64, bool, slices, nested structs).
Is my JSON data kept private?
Absolutely. Everything is processed locally in your browser; nothing is sent to a server.