JSON to Go Struct

Paste JSON, get Go structs with json tags. Nested objects become named structs.

Frequently asked questions

How does JSON to Go work?

Paste a JSON object and the tool generates Go struct definitions with matching json tags, inferring int/float64/bool/string and turning nested objects into their own named structs.

How are numbers typed?

Whole numbers become int and numbers with decimals become float64. If a field varies, you may want to adjust manually, since JSON does not distinguish int sizes.

Is my JSON uploaded?

No, conversion runs entirely in your browser.