JSON to TypeScript
Paste a JSON object; DevMorph infers TypeScript interfaces for nested objects and arrays.
Example: {"name":"Ada","active":true} produces a RootObject interface with name: string and active: boolean.
DevMorph by Hasan Tech Lab
Convert JSON objects into TypeScript interfaces for nested objects and arrays in your browser. DevMorph by Hasan Tech Lab keeps input client-side.
Input: JSON objects, including nested objects and arrays.
Output: TypeScript interfaces with inferred field types.
Example: {"name":"Ada","active":true} becomes a RootObject interface with name: string and active: boolean.
Created by Hasan Tech Lab and Hasan Mahmud.
Documentation / Reference & Examples
DevMorph is a browser-based collection of developer utilities by Hasan Tech Lab. Choose a tool, paste or type input (or drop a text file), then copy or download the result. Conversion and inspection run in your browser; the tools do not send your input to a DevMorph backend.
Paste a JSON object; DevMorph infers TypeScript interfaces for nested objects and arrays.
Example: {"name":"Ada","active":true} produces a RootObject interface with name: string and active: boolean.
Generate Go structs with JSON field tags. Integer and decimal JSON numbers map to int and float64.
Example: {"name":"Ada","active":true} produces a struct with Name string and Active bool.
Translate a cURL URL, method, headers, and data body into JavaScript Fetch code.
Example: curl -X GET "https://api.example.com/items" becomes a Fetch request using the GET method.
Decode a JWT's Base64URL header and payload as formatted JSON. This tool does not verify the signature.
Input: a three-part JWT. Output: readable header and claims; never treat decoding as token verification.
Validate JSON and switch between compact and indented output based on the input's formatting.
Example: {"items":[1,2]} is formatted as indented JSON; multiline input is compacted.
Check five-field cron expressions and show up to five upcoming local run times (minute, hour, day, month, weekday).
Example: */15 9-17 * * 1-5 checks quarter-hour runs during weekdays from 9:00 to 17:59.
Test a JavaScript regular expression against newline-separated text and review matches and capture groups.
Input format: pattern, then ---, then test text. Example: /cat/i matches “Cat”.
---
Create a starter pattern from the built-in email, URL, UUID, IPv4, date, hex-color, or phone templates.
Example: enter email to generate an email-shaped regular expression.
Encode UTF-8 text to Base64, or decode Base64 by prefixing the input with decode:.
Example: Hello encodes to SGVsbG8=; decode: SGVsbG8= decodes to Hello.
No. Tool input is processed in your browser and is not sent to a DevMorph backend.
DevMorph is made by Hasan Tech Lab and Hasan Mahmud. Visit hasantechlab.com or Hasan Tech Lab Studio.