JSON to Prisma
Paste a JSON sample and get a Prisma schema model back — inferred scalar types, @id, @unique and createdAt/updatedAt, with the generator and datasource blocks. It all runs in your browser.
Prisma model appears here.
Runs in your browser. Your input is not uploaded to PayloadIQ.
JSON to Prisma turns a JSON sample into a Prisma model you can paste into your schema.prisma. It emits a model block with one field per key — scalar types inferred as Int, Float, String, Boolean or DateTime, and Json for nested objects and arrays — plus the generator and datasource blocks so you have a complete starting schema. Everything runs locally in your browser, so a real payload never leaves your machine.
Sensible defaults, ready to edit
An id becomes @id @default(autoincrement()), an email gets @unique, and every model gains createdAt / updatedAttimestamps — the conventions you'd add by hand. Set the model name with the Model-name field.
From scalars to relations
Inference is sample-driven and can't guess relations from one object, so nested objects and arrays land as Json; once the scalar fields are in place, model real relations with @relation yourself. Want types in another language, or seed SQL from the same payload? Try JSON to SQL or the PayloadIQ playground.