JSON Shapeshifter: a cute JSON to code converter
THE PURPOSE
Every developer has stared at a blob of JSON and thought, now I have to write the types for this by hand. JSON Shapeshifter does the boring part. Paste any JSON and it shapes it into TypeScript interfaces, C# classes, SQL CREATE TABLE scripts or a JSON Schema, with a live tree preview of your data. It saves time on API work and database design, and it looks friendly while doing it. Everything runs in your browser, so nothing you paste is ever uploaded.
WHAT IT DOES
Infers types by merging every value it sees: integers vs decimals, nullable fields, optional keys that appear in only some objects, arrays of objects, plus ISO dates, UUIDs and emails
TypeScript: interfaces with optional and nullable fields
C#: System.Text.Json classes with JsonPropertyName attributes, List, nullable types, Guid, DateTime and DateOnly
SQL: CREATE TABLE scripts for PostgreSQL, SQL Server, MySQL and Oracle, where nested objects and arrays become child tables with foreign keys
JSON Schema: draft 2020-12 with required lists and formats
Live collapsible tree preview, prettify, sample data, one-click copy, and light and dark mode
THE DESIGN
Instead of a serious developer-tool look, I gave it a character. A blob mascot blinks, morphs, changes color with every output tab and reacts in a speech bubble: it is happy when your JSON parses, and tells you it is a little crunchy when it does not. The interface uses thick outlines, offset shadows and pastel colors, with custom syntax highlighting for every output language.
A CHALLENGE I SOLVED
Real JSON is messy. One object has a key another does not, and a value is null in one record and a number in the next. I wrote a type-inference engine that merges all observations into a single descriptor per field, so a missing key becomes optional, null becomes nullable, and an integer mixed with a decimal becomes a double. The same descriptors feed all four generators, so TypeScript, C#, SQL and JSON Schema always agree with each other.
TOOLS AND TECH
HTML5, CSS custom properties and vanilla JavaScript, with no frameworks, no dependencies and no build step
A type-inference engine, naming utilities and four code generators written from scratch
A custom regex-based syntax highlighter
Fredoka from Google Fonts
Playwright for automated browser testing on desktop and mobile widths, and FFmpeg for the animated preview
Claude (Anthropic's AI assistant) as a pair programmer for building and testing
WHO IT'S FOR
Frontend and backend developers wiring up APIs, students building database coursework, and anyone who wants a quick starting point for their data models.
0 likes · 2 views · Nov 10, 2026
A cute, browser-based tool that turns pasted JSON into TypeScript, C#, SQL and JSON Schema.