HTML to MP4

From editable source to finished video.

Auto duration
Duration options

Match the source timing and natural playback speed. For new creations, estimate from the content. Maximum 120 seconds.

See an example and how it works
A short product walkthrough built in HTMLOriginal composition study · fictional content · silent MP4. This illustrates the intended result; it is not a recorded customer job.

Convert an HTML composition into an MP4 online. See the result first, inspect the source, then choose the workflow that fits your project.

Use the example as a starting point. Nothing is submitted until you create a video.

View example HTML ↗
  1. 01Paste or upload your HTML
  2. 02Describe any changes
  3. 03Export your MP4

Examples / Templates

Paste-your-own HTML on this page (or the HTML form) is still the primary path. Prefer a curated layout? The packs below open on the Templates tab / video templates with that pack selected. Credits scale with Length (≤30s = 1 · ≤60s = 2 · ≤120s = 3); there is no submit-time preview.

Full library: Video templates. Free-form brief: Prompt to video.

Four methods to convert HTML to MP4: online tool, HyperFrames CLI, cloud API, screen record or PNG plus FFmpeg
Online tool first; CLI and DIY options below

Who this page is for

People who search html to mp4, paste HTML to video, or HTML to MP4 online usually want a finished file without standing up a render box. Typical readers:

  • Developers and technical marketers — Already have (or can generate) HTML/CSS/JS; want a frame-accurate MP4 without After Effects or a local Node/FFmpeg install.
  • Creators comparing methods — Deciding between a hosted paste form, local HyperFrames CLI, cloud Lambda, screen record, or PNG+FFmpeg — see online vs CLI vs DIY.
  • Animation exporters — Turning CSS/@keyframes, GSAP, or HyperFrames compositions into downloadable video; sibling guides cover HTML animation to video and CSS animation to video.
  • Template-first users — Prefer fill-in fields over raw markup; jump to the cards above or video templates (credits by length, no submit-time preview).

Searching specifically to convert HTML to video, or to try HTML to MP4 online free with a signup credit? Those sibling pages share the same hosted HTML → MP4 path. Starting from a prompt, a URL, or a brand kit instead? See prompt to video, website to video, and brand kit video.

Quick start checklist

Two hosted paths — paste HTML (primary on this page) or pick a template:

  • Sign in at Html2MP4 (free account required to run a job; signup may include a free credit to try).
  • Paste path: use the form above on this page (or the HTML form) → paste a full page or HyperFrames composition → optional change note (keep the design, make it 9:16) → pick format and length → create.
  • Template path: open a pack above or Video templates → fill the short field schema → enqueue. Same engine, same credit rule.
  • Wait for the job to finish, then download the MP4 from the video page.
  • Credits scale with Length (≤30s = 1 · ≤60s = 2 · ≤120s = 3); there is no submit-time preview editor. Html2MP4 does not expose a public REST API for video jobs.

Want full local control instead? Skip to the CLI section or the HyperFrames install guide, then the tutorial.

Online Html2MP4 vs local HyperFrames CLI vs DIY

Html2MP4 is an independent online video maker. There is no public REST API for Html2MP4 video jobs. Credits scale with Length (≤30s = 1 · ≤60s = 2 · ≤120s = 3); there is no submit-time preview.

  • Html2MP4 online (this page) — Browser forms: paste HTML, fill a Templates pack, or use prompt / website / brand / showcase paths. Download the MP4 directly from your browser. Best when you want an MP4 without operating Node, Chrome, or FFmpeg yourself.
  • Local HyperFrames CLI — Author a composition, run npx hyperframes render. Deterministic frame seeks, full control, free to run on your machine. Needs Node.js 22+ and FFmpeg. Walkthrough: HyperFrames tutorial. Setup: install. Background: what is HyperFrames?
  • Cloud rendering (HyperFrames project) — AWS Lambda or HeyGen’s Cloud Rendering API when you need scale without keeping a GPU/CPU box warm. You still author in HTML; the cloud only runs capture and encode.
  • DIY screen record — Puppeteer/Playwright video, or OBS on a browser window. Fast to set up; timing depends on machine speed and frames can drop. Fine for one-off demos; weak for batch/CI identical pixels.
  • DIY PNG sequence + FFmpeg — Capture frames, then ffmpeg -framerate 30 -i frame_%04d.png -pix_fmt yuv420p out.mp4. You own every frame and also the seek/sync logic HyperFrames already provides.

Which to pick? Paste HTML in the browser with no install → form above or the HTML form. Repeatable local or agent-generated video → HyperFrames CLI or cloud. One-off demo of a live site → screen recording — or try website to video for a designed promo. Slideshow with no complex animation → PNG + FFmpeg or Editly (see alternatives).

Five practical methods (detail)

1. Html2MP4 online (paste HTML)

Use the HTML form on this page (or the homepage form), paste a full page or HyperFrames composition, optionally note changes, pick format and length, then create. The server authors or adapts the composition, exports it frame by frame as an MP4. This is the main path for “html to mp4” intent on this site. Template-first alternative: the cards in Examples / Templates.

2. HyperFrames CLI (deterministic, free locally)

Author the page as a HyperFrames composition and run npx hyperframes render. The engine seeks headless Chrome frame-by-frame and encodes with FFmpeg, so timing stays stable across machines. Best quality when you want full local control. See the tutorial and render troubleshooting if a job hangs.

3. Cloud rendering

When you need scale without keeping a box warm, render HyperFrames projects on AWS Lambda (supported by the project) or HeyGen’s Cloud Rendering API. You still author in HTML; the cloud only runs the capture and encode steps. Separate from Html2MP4’s hosted forms — Html2MP4 does not sell a public job API.

4. Screen-record a page

Puppeteer or Playwright video recording, or OBS pointed at a browser window. Fast to set up, but timing depends on machine speed and frames can drop. Fine for demos; weak for batch or CI where you need identical pixels every run.

5. Screenshots plus FFmpeg

Capture a PNG sequence (manually stepped or scripted), then encode:

ffmpeg -framerate 30 -i frame_%04d.png -pix_fmt yuv420p out.mp4

Works for static slides or animations you control yourself. You own every frame, but you also own the seek/sync logic that HyperFrames already provides.

Common questions

Can I paste HTML and get an MP4 online?

Yes. The tool is live on this page: sign in at Html2MP4, paste a full page or HyperFrames composition below (or on the HTML form on /), optionally note changes (for example make it 9:16), pick format and length, then create. Credits scale with Length: ≤30s = 1, ≤60s = 2, ≤120s = 3; there is no submit-time preview.

Do I need HyperFrames data attributes?

For best results, yes — a composition with data-composition-id, timing attributes and seekable animation. Plain HTML still works; the agent can adapt it.

How is this different from screen recording?

Html2MP4 exports video frame by frame, so timing stays stable. Screen recording depends on machine speed and can drop frames.

Can I start from a template instead of pasting HTML?

Yes. Official packs such as CSS text reveal, HTML feature grid, product launch, sale promo, and event invite open from Examples / Templates on this page or /video-templates (Templates tab). Pasting your own HTML on this page (or the HTML form on /) remains the primary path. Template jobs use the same length-based credits (≤30s = 1, ≤60s = 2, ≤120s = 3) with no submit-time preview.

How do credits work for HTML to MP4?

Credits scale with Length: ≤30s = 1, ≤60s = 2, ≤120s = 3 — whether you paste HTML or use a Templates pack. Failed or cancelled jobs are not billed as a successful render. New accounts get 3 free credits to try; there is no unlimited free usage promise. Html2MP4 does not expose a public REST API for video jobs.

Do I need Node.js or FFmpeg on my machine?

Not for Html2MP4 hosted: paste HTML or fill a template in the browser and our workers render the MP4. Local HyperFrames CLI still needs Node.js 22+ and FFmpeg — see the HyperFrames install guide.

Can I export vertical 9:16 video?

Yes. On this page (or the HTML form on /) pick a vertical format, or note make it 9:16 in the optional change note. Templates also support format selection when you enqueue.

Related