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.
Related tools
Base32 · encode / decode Encode and decode text to and from Base32 (RFC 4648) in your browser. Base58 encode/decode Encode and decode text in Base58 (Bitcoin, IPFS) right in your browser. Base64 · encode / decode Encode and decode text to and from Base64 (UTF-8), right in your browser. Base64URL encode/decode Encode and decode Base64URL (URL-safe variant used in JWT), in your browser. BBCode → HTML Convert forum BBCode into clean, sanitized HTML, right in your browser. Text ↔ binary Convert text to binary (ASCII/UTF-8) and back.