100% local — your data never leaves your browser

JSON to Prisma Schema Model — Free Online Tool

Generate a Prisma schema model from sample JSON instantly in your browser. Free, private and offline-friendly: your data never leaves your device.

Instant Private Zero cookies

JSON input

Prisma output

Why convert JSON to Prisma?

Bootstrapping a Prisma model from an existing API payload or document saves typing. Paste a sample JSON above and get a model block with aligned fields, ready to paste into schema.prisma.

How it works

Strings map to String, integers to Int, floats to Float, booleans to Boolean. Homogeneous scalar arrays become native lists like String[] (PostgreSQL), anything else becomes Json. Field names are camelCased with @map pointing back to the original key, and the Root name option sets the model name. Because every Prisma model requires an identifier, an existing scalar id field is marked @id — otherwise an auto-incremented id Int @id is added at the top.

Frequently asked questions

Is my JSON data uploaded to a server?
No. Everything runs entirely in your browser with JavaScript. Nothing is sent over the network, which makes the tool safe for sensitive data.
How are nested objects handled?
They become Json fields. Relations cannot be reliably inferred from a single sample, so the tool stays honest instead of inventing foreign keys — adjust the model afterwards if needed.
What about field names that are not camelCase?
Fields are renamed to camelCase and the original key is preserved with @map, so your database columns keep their existing names.

Related converters