What does JSON to MP4 mean?
JSON to MP4 is the process of converting a JSON description of a video into a rendered MP4 video file. Instead of editing video manually, you describe what your video should contain — scenes, text, images, audio, voiceover, subtitles — in a structured JSON object, and a rendering engine produces the final MP4.
This is the core of how JSON2Video works: you POST a JSON payload to the API, and it returns a ready-to-use MP4 file.
How to convert JSON to MP4
Step 1: Write your video JSON
A JSON2Video movie is a JSON object with an array of scenes. Each scene contains elements — the building blocks of your video.
{
"scenes": [
{
"elements": [
{
"type": "image",
"src": "https://example.com/background.jpg"
},
{
"type": "text",
"text": "Hello World",
"style": "subtitle",
"position": "bottom"
}
]
},
{
"elements": [
{
"type": "video",
"src": "https://example.com/clip.mp4",
"duration": 5
},
{
"type": "voice",
"text": "This is an automated voiceover.",
"model": "elevenlabs",
"voice": "Rachel"
}
]
}
]
}
Step 2: Send it to the API
Use a simple POST request to start rendering. Works from any language — Python, JavaScript, PHP, cURL, or no-code platforms.
curl -X POST https://api.json2video.com/v2/movies \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d @movie.json
Step 3: Download the MP4
The API renders your video in the cloud and returns the MP4 URL. Typical render time: 30-90 seconds for a 1-minute video.
{
"status": "done",
"url": "https://assets.json2video.com/renders/movie-12345.mp4"
}
What you can include in your JSON
JSON2Video supports a rich set of elements that you can compose in any combination:
- Video clips — trim, crop, loop, adjust speed (tutorial)
- Images — static or animated, with positioning and effects (tutorial)
- Text — custom fonts, colors, animations, positions (tutorial)
- Audio — background music, sound effects, volume control (tutorial)
- TTS voiceover — ElevenLabs and Azure voices in 80+ languages (tutorial)
- Subtitles — auto-generated with word-level timing (tutorial)
- Transitions — fade, slide, zoom between scenes
JSON to MP4 vs JSON to Video
"JSON to MP4" and "JSON to video" refer to the same process. MP4 is the most common output format for web video, and it's what JSON2Video renders by default. The API also supports different resolutions (1080p, 720p, 4K) and aspect ratios (16:9, 9:16 for vertical video, 1:1 for square).
Use cases for JSON to MP4 conversion
- Social media automation — Generate TikToks, Reels and Shorts from data feeds
- E-commerce — Turn product catalogs into video ads automatically
- Real estate — Convert property listings into video tours
- News — Transform articles into video summaries with voiceover
- Personalized marketing — Create thousands of unique videos from a single template
No-code JSON to MP4
You don't need to write code to convert JSON to MP4. Use JSON2Video with no-code platforms:
- Make.com — visual workflows with 24+ video automation tutorials
- n8n — self-hosted automation with JSON2Video nodes
Get started
Convert your first JSON to MP4 in minutes:
- Get a free API key — no credit card required
- Getting started guide
- API specification
- JSON to video tutorial
Published on April 21st, 2026