JSON to Swift Codable Converter

Turn JSON into Swift structs that conform to Codable.

Support
Works Offline
Privacy First
No Login
No API

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.

Popular uses

  • json to swift
  • swift codable
  • ios model generator
  • swift struct
  • codingkeys
  • ios

Examples

Snake case key

JSON{"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

Works well with

Next steps from other categories.

All Converters tools

Frequently asked questions

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