jsonpost

JSON to Swift Struct Generator

Generate Codable Swift structs from JSON with CodingKeys for snake_case mapping.

Runs entirely in your browser — your data never leaves your device.

Loading tool…

How to use this tool

  1. 1Paste your JSON sample into the editor.
  2. 2Set the root struct name.
  3. 3Copy the generated Codable Swift structs.

Frequently asked questions

Does it generate CodingKeys?
Yes. When keys use snake_case, CodingKeys are generated to map them to camelCase Swift properties.
Are the structs Codable?
Yes. The output conforms to Codable so it works directly with JSONDecoder.
Is my data uploaded to a server?
No. Every tool on JSONPost runs entirely in your browser using JavaScript. Your JSON never leaves your device, so it is safe to use with private or sensitive data.

Related tools