HTML TO VIDEO
HTML to video: render HTML and web pages to MP4
Two different jobs share this name — You may have an HTML or CSS animation you want as an MP4, or a web page or blog post you want explained in a video — Claude Motion handles both on HyperFrames, the open-source HTML renderer, from Claude Code or Codex
Renders locally on your computer · Claude Motion is independent, not affiliated with Anthropic or HeyGen
A paid Creator or Studio subscription is required — There is no Free plan
INDEX.HTML → HYPERFRAMES → RENDER.MP4
TEXT
CHARTS
INTERACTIONS
AUDIO
HTML, CSS AND JS IN · MP4 OUT · 1920×1080 AT 30 FPS BY DEFAULT · RENDERED WITH HYPERFRAMES
Why a screen recording is not enough
Recording a browser tab captures whatever the page happens to draw in real time. If the computer stutters, frames drop; timers and CSS animations drift from the music; and you cannot re-render one scene without recording everything again. A frame-accurate renderer works the other way round: it seeks the page to each exact moment, takes that frame, and stitches the frames into an MP4 with FFmpeg.
Same result every time
Each frame is drawn at a known time, so two renders match.
No dropped frames
A slow machine only renders slower; the video stays smooth.
Audio in sync
Voiceover and music sit on the same timeline as the visuals.
| SCREEN RECORDING | FRAME-ACCURATE RENDER | |
|---|---|---|
| Timing | Wall clock | Seeked frame by frame |
| Dropped frames | Possible | None |
| Re-render one scene | Record again | Edit and render |
| Audio sync | Manual | On the same timeline |
| Output | Whatever was on screen | MP4, 1920×1080, 30 fps |
HTML ANIMATION TO MP4
Turn an HTML or CSS animation into MP4 without drift
HyperFrames treats an ordinary HTML document as a deterministic video composition: each scene carries data-start and data-duration attributes, and animations seek to exact frame timestamps instead of relying on wall-clock timers. Your agent writes that composition—or adapts your existing HTML—then renders it locally with headless Chrome and FFmpeg.
Use web tech you already ship
HTML, CSS variables, inline SVG, ECharts and seekable timelines such as GSAP.
Fix the 4 things that break raw HTML renders
Your agent replaces setTimeout loops, preloads fonts before frame 0, locks a 1920×1080 viewport, and binds chart reveals to frame time.
Fine-tune on a visual timeline
Trim, reorder and retime clips in HyperFrames Studio before exporting the final MP4.
An existing page with real-time WebSocket feeds, autoplay <video> tags or mouse-only hover states will not render as-is; your agent rewrites those interactions into timed clips.
See rendered HTML examples| RAW HTML PITFALL | IN PLAIN HEADLESS CHROME | WITH CLAUDE MOTION + HYPERFRAMES |
|---|---|---|
| setTimeout / rAF | Drifts when CPU slows down | Bound to deterministic frame seek |
| Infinite CSS @keyframes | Cuts mid-loop at scene end | Scoped to clip data-start / duration |
| Remote Google Fonts | FOUT flash on early frames | Awaited via document.fonts.ready |
| ECharts / SVG draw | Captures blank canvas at t=0 | Stepped progressively per frame |
BLOG & WEB PAGE TO VIDEO
Blog to video: turn an article URL or saved HTML into an explainer
Starting from a blog post, changelog or documentation page instead of an animation? Hand your agent the public URL or a saved .html file. Claude Motion strips navigation, cookie banners and footers, downloads figures locally, checks every number against the source text, and maps each heading into a paced visual scene with optional voiceover.
Clean article extraction
Public https:// blog URLs and saved .html files keep headings, quotes, tables and images—none of the site chrome.
Source-checked numbers & charts
Metrics turn into animated ECharts and claudemotion check verifies no figure was rounded or hallucinated.
One build, two outputs
Export a 1920×1080 (or 9:16 social) MP4 and publish an interactive web link from the same HTML file.
Pages behind a login, paywall or client-only SPA router may not fetch directly; save the rendered page as .html or paste Markdown instead. Generating, rendering, voiceover and sharing require a Creator ($19.9/mo) or Studio plan.
Convert a blog or HTML pageHTML ANIMATION → MP4
Adapt ./hero-animation.html into a 15s 1920×1080 HyperFrames composition, convert wall-clock CSS timers to seekable clips, and render standard MP4.
BLOG POST → EXPLAINER VIDEO
Turn https://example.com/blog/q3-benchmarks into a 60s Claude Motion video with animated bar charts, English voiceover, and exact source numbers.
HTML pages rendered to video
Every card is an HTML composition an agent built from a brief and rendered to MP4 with HyperFrames.
Kite AI Meeting Notes — LaunchMotion 4-scene filmStyle · LaunchMotion93sView example
Weekly Writing Habit — CreatorMotion B-roll suiteStyle · CreatorMotion7sView example
Fernway 2 — Fable 5.2 Style Launch VideoStyle · Fable 5.2 Style Launch Video18sView example
Manus 2.0 Style Launch Video — HyperFrames launch showcaseStyle · Manus 2.0 Style Launch Video94sView example
Why your coffee costs twice as muchStyle · Ink Editorial15sView example
Sprout — plant care, softlyStyle · Soft Clay15sView example
How Seeds Travel — a watercolor storyStyle · Watercolor Story15sView example
一幅画里的四季Style · Huashu Art Motion15sView examplealchaincyf/huashu-art-motion· MIT
Linear Agent Style Launch Video — HyperFrames launch showcaseStyle · Linear Agent Style Launch Video35sView example
Capability-Keynote Launch Film — HyperFrames launch showcaseStyle · Capability-Keynote Launch Film35sView example
Record Store Day — Halftone RecordsStyle · Bang Motion14sView examplebangtutorial/bang-motion· MIT
Weekly review in five minutesStyle · Notion16sView example
What you get on top of plain HTML rendering

Motion styles
Pick a style or let your agent design freely.

Animated charts
ECharts built in, styled to match.

Blog & web ingest
Links and saved .html, main content only.

HyperFrames timeline
Edit clips, timing and blocks.

Voiceover
Narration fitted to each scene.

Music
Generate now or add later.

Share links
The interactive HTML, public or password.

MP4 render
Local and deterministic.
Render HTML to video with Claude Motion in 3 steps
- 1Paste the one-line install from the install guide into Claude Code or Codex.
- 2Give your agent your HTML, a blog/web URL or a brief, and pick a motion style.
- 3Check it on the HyperFrames timeline, then render MP4 or share a link.
First run opens your browser to sign in — one click, no terminal.
Your questions, answered
How do I convert HTML to MP4?
Use a renderer that seeks the page frame by frame, such as HyperFrames, rather than recording the screen. The page needs timed clips (data-start and data-duration) and animations that follow the timeline. With Claude Motion your agent writes or adapts the HTML and runs headless Chrome + FFmpeg for you.
Can I convert a CSS animation to video?
Yes, once it follows the timeline. Looping CSS keyframes and setTimeout run on the wall clock, so your agent rewrites them as timed clips or a seekable timeline such as GSAP before rendering.
How do I turn a blog post into a video (blog to video)?
Paste the public https:// blog URL (or a saved .html file) into Claude Code or Codex with Claude Motion installed. It extracts the article headings, key arguments, tables and images, lets you pick a visual motion style, adds optional ElevenLabs narration, and exports a 1080p or 9:16 MP4.
Why do web fonts or charts flicker when rendering HTML to video?
In a naive headless screenshot loop, Frame 0 often fires before remote @font-face files finish downloading or while ECharts is still running a real-time intro animation. Claude Motion waits for document.fonts.ready, bundles local assets, and drives chart progress from the deterministic frame clock.
Is HyperFrames free?
Yes. HyperFrames is open source under Apache-2.0 and renders on your own computer. You can use it standalone; Claude Motion adds motion styles, blog/web page ingest, source-number verification, voiceover, charts and share links on top.
What resolution and frame rate do I get?
Claude Motion compositions default to 1920×1080 at 30 fps (with 9:16, 1:1 and 4:5 aspect ratios also supported). Draft, standard and high render presets trade speed for bitrate.