Paste valid JSON into the input area on the left.
Set the root struct name (defaults to 'Root') using the option field.
Toggle omitempty tags and pointer types to match your Go project conventions.
Click Convert or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to generate Go structs.
Copy the generated Go code or download it as a .go file.
Generates idiomatic Go structs with json struct tags from any JSON input.
Supports nested objects — creates separate named structs for each nested structure.
Optional omitempty tag on all json tags for omitting zero-value fields during marshalling.
Optional pointer types (*string, *int, etc.) for nullable fields.
Go-idiomatic field naming: camelCase JSON keys are converted to PascalCase exported fields.
Handles JSON arrays of objects by inferring the slice element type.
Works entirely in your browser — JSON never leaves your device.
Keyboard shortcut ⌘↵ for instant conversion.