HTML to Video & MP4 Converter Online (Code to Video)

Turn HTML code into a video in your browser: paste code, preview it live, record the full animation or a custom length at 10, 30 or 60 fps, and download a sharp MP4 or WebM video. Free, no sign-up, nothing is uploaded.

Guide last updated 14 Nov 2026.

How HTML to video works

Paste HTML and CSS, preview it live, then press Record video. No code? Tap Birthday, Sale or Big title to load a ready animation that plays in its preview card, then press Record video. The tool works out what kind of animation it is: a CSS animation records smooth at 30 or 60 frames per second; a story that plays with JavaScript, for example one with a Play button, records live, and the tool presses Play for you. If your story makes sound with WebAudio, the sound is recorded in the video too. Pick a length under Settings: Auto records the full animation for CSS, 60 seconds for a JavaScript story, and 5 seconds for a still page, or pick 5, 10, 30 or 60 seconds, the full animation, or a custom length. A vertical story, for example a 9:16 phone story, is shown in a vertical preview and comes out as a vertical video. 3D scenes, for example Three.js, are captured too. The tool captures the preview at up to twice the preview size, so the video stays sharp. You can also record in 1080p instead of the default 720p - pick it in the options before you record. You can download the result as MP4 or WebM. Everything runs in your browser.

Format and browser support

The video downloads as MP4 in Chrome, Edge and Safari, which plays almost everywhere including WhatsApp and TikTok. Smooth 30 and 60 fps recording is for CSS animations and needs a browser with VideoEncoder, such as a recent Chrome, Edge or Safari. A story that plays with JavaScript records live at the frame rate you pick, with sound when the story makes sound with WebAudio; the picture updates as fast as the page allows. A CSS animation records picture only, with no sound. If your browser cannot make MP4, the tool saves WebM instead.

Common questions

Is this tool free?

Yes. It is free and no sign-up is needed.

What format is the video?

MP4 in Chrome, Edge and Safari, which plays almost everywhere including WhatsApp and TikTok. If your browser cannot make MP4, the tool saves WebM instead.

Does my data leave my device?

No. The tool runs in your browser and does not ask you to create an account.

Can I record in 1080p?

Yes - pick 1080p in the options before you record; the default is 720p.

I do not know HTML. Can I still make a video?

Yes - press Birthday, Sale or Big title above the code box to load a ready animation, then press Record video. You can change the words in the code box first if you like.

More free tools

All Kalkio tools