Skip to main content

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

TitleCallout

CHARTS

Organic barsChannel filter

INTERACTIONS

QuizDrag match

AUDIO

Music bed · voiceover

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.

Get started
SCREEN RECORDINGFRAME-ACCURATE RENDER
TimingWall clockSeeked frame by frame
Dropped framesPossibleNone
Re-render one sceneRecord againEdit and render
Audio syncManualOn the same timeline
OutputWhatever was on screenMP4, 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 PITFALLIN PLAIN HEADLESS CHROMEWITH CLAUDE MOTION + HYPERFRAMES
setTimeout / rAFDrifts when CPU slows downBound to deterministic frame seek
Infinite CSS @keyframesCuts mid-loop at scene endScoped to clip data-start / duration
Remote Google FontsFOUT flash on early framesAwaited via document.fonts.ready
ECharts / SVG drawCaptures blank canvas at t=0Stepped 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 page

HTML 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.

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

  1. 1Paste the one-line install from the install guide into Claude Code or Codex.
  2. 2Give your agent your HTML, a blog/web URL or a brief, and pick a motion style.
  3. 3Check it on the HyperFrames timeline, then render MP4 or share a link.
Install Claude Motion: run npx -y claudemotion@latest setup and follow the output.

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.

Render your HTML or blog post to MP4

Get Claude Motion now