JSON to TypeScript
Paste a JSON response and get TypeScript interfaces for it. Optional fields are detected.
How it works
Writes TypeScript interfaces from a sample JSON response. Keys missing from some items become optional.
Good to know
- A sample is only a guess. Check types against the API documentation.
Common questions
- Why is a field typed as null?
- The sample had null, so the true type is unknown. Edit it.
- Can I name the root type?
- Yes, and you can choose interface or type.
- Is it uploaded?
- No. Everything runs in your browser and nothing leaves your device.
More in Developer.
ASCII Converter
See the ASCII code of every character in decimal, hex, binary and octal, or turn codes back into text.
OPEN →Axios Request GeneratorFill in a method, URL, headers and body and get a ready Axios Request snippet to copy.
OPEN →Base32 Encoder and DecoderEncode text to Base32 (RFC 4648) or decode it, as used in 2FA secrets.
OPEN →