JSON to Swift Codable Converter

Turn JSON into Swift structs that conform to Codable.

Support
Works Offline
Privacy First
No Login
No API

JSON input

Swift Codable models

About the JSON to Swift Codable Converter

Paste an API response and get idiomatic Swift models: nested structs or classes conforming to Codable, camelCase properties with CodingKeys for snake_case JSON keys, optionals for null values and typed arrays. Everything is generated locally in your browser, so private payloads never leave your machine.

Examples

Snake case key

{"full_name":"Ada"}

Output

let fullName: String + CodingKeys

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-23 · Runs entirely in your browser