Turn JSON into Swift Codable models in seconds.
Json Codable is a lightweight macOS app that converts JSON into clean, type-safe Swift Codable models. Paste JSON, choose your options, and copy or export ready-to-use Swift code.
{
"id": 1,
"user_name": "motasem",
"is_active": true,
"tags": ["swift", "ios"],
"profile": {
"email": "user@example.com",
"age": 27
}
}
struct User: Codable {
let id: Int
let userName: String
let isActive: Bool
let tags: [String]
let profile: Profile
enum CodingKeys: String, CodingKey {
case id
case userName = "user_name"
case isActive = "is_active"
case tags, profile
}
}
struct Profile: Codable {
let email: String
let age: Int
}
Built for everyday backend & iOS work
Json Codable focuses on the small details that make JSON mapping less painful and your Swift code cleaner.
Clean Codable models
Generate struct or
final class models with camelCase properties and
accurate CodingKeys.
Smart type inference
Automatically infers Int, Double,
Bool, nested objects, arrays, and gracefully falls back to
Any for mixed arrays.
Syntax highlighting
Readable, Xcode-like syntax highlighting for the generated Swift code so you can quickly review before copying.
Familiar layout
JSON on the left, Swift on the right, with a sidebar and toolbar that feel right at home for Xcode users.
History & search
Save useful JSON snippets, search through them later, and reload them with a single click while iterating on APIs.
Export-ready
Copy to clipboard or export directly as a .swift file via a native save panel.
From JSON to Swift in three steps
Json Codable fits naturally into your development flow and keeps your models consistent across projects.
-
1
Paste, type, or import JSON
Drop a JSON payload from your API or write a small sample object. The editor normalizes quotes and validates on generate.
-
2
Choose your preferences
Choose the root type name, pick struct vs class, and optionally make all properties optional when dealing with unreliable backends.
-
3
Copy or export the models
Copy to clipboard or export as a Swift file, then drop it into Xcode and start decoding JSON immediately.
Why Json Codable instead of online tools?
- ✔ Runs locally on your Mac – no need to paste production data into a website.
- ✔ History and search help you reuse the JSON samples you already tested.
- ✔ Customizable output that matches your team’s Swift style.
- ✔ No browser tabs, no ads, no distractions – just JSON and Swift.
Privacy-friendly by default
Json Codable runs entirely on your device. Your JSON never leaves your Mac, making it safe to use with staging or even production-like payloads (following your company policies, of course).
Local processing
All conversions happen locally. No accounts, no servers, no telemetry.
You stay in control
Clear history at any time, or simply avoid saving sensitive snippets when you don’t need to.
No hidden sync
No cloud sync or background uploads. Your data stays on your Mac.
Frequently asked questions
Which macOS versions are supported?
Json Codable is built for modern macOS (Sonoma and newer) and is optimized for Apple Silicon. It may run on slightly older versions, but the best experience is on up-to-date macOS.
Does Json Codable support only Swift?
The current version focuses on Swift Codable models. Support for other targets (TypeScript, Kotlin, etc.) is on the roadmap.
Do I need an internet connection?
No. Once you download Json Codable, everything works offline.
Can I use it for production apps?
Absolutely. The generated models are plain Swift code you can edit, extend, and commit to your repositories like any other file.