ForHosting KIT · Video

Video file size calculator

A 60-second clip at 8 megabits per second with 128 kilobits per second of audio comes to 60.96 megabytes. Size an upload, a memory card or a disk before you press record or export. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon

Runs in your browser. Free, unlimited — your data never leaves this page.

Video file size is the product of how many bits you spend per second and how many seconds you record.

How encoded video file size is estimated from bitrates

A compressed video file is a stream of bits that arrives at a chosen rate for a chosen length of time. Resolution bitrate is the video half of that stream, quoted in megabits per second: eight megabits per second is a common 1080p delivery target, while four-kilopixel masters often sit between twenty and fifty. Audio bitrate is the soundtrack in kilobits per second, typically one hundred twenty-eight or three hundred twenty for stereo AAC.

Duration is how many seconds those two streams run. A sixty-second clip at eight megabits per second plus one hundred twenty-eight kilobits per second of audio is sixty point nine six megabytes. An hour at forty megabits plus three hundred twenty kilobits is eighteen point one four four gigabytes.

This formula models a constant-bitrate elementary stream. Variable-bitrate encodes, scene-complexity swings, and MP4 or MKV headers of a few kilobytes will move the file a little; for storage ceilings, upload quotas, and card budgets the CBR product is the number that matters, and this calculator returns it with the bitrates that produced it.

Where a video file size calculator earns its keep

Creators size a YouTube or course upload before encoding so a forty-minute 1080p master does not overflow the remaining disk or a daily quota. Camera operators pick a resolution bitrate and need to know whether a sixty-four gigabyte card will cover a wedding timeline at twenty-four or sixty frames per second. Live-event and broadcast teams estimate overnight archive footprints for multi-hour recorders before they commit a codec profile.

Failed validation does not consume balance. Keep requests small, pin the rounded megabyte or gigabyte values in tests, and you get reproducible storage numbers for NLE templates, LMS demos, and edge workers without standing up media-analysis infrastructure of your own.

Size an upload before you encode

Convert planned video bitrate, frame rate, duration, and audio bitrate into megabytes or gigabytes so the export drive, SD card, or object-store bucket has room for the file you intend to produce.

Why does the calculator ask for frame rate if size is bitrate times time?

Frame rate does not change the CBR byte count.

What happens if duration is zero, negative, or missing?

Duration must be a positive finite number. Invalid input is not billed.

How big is a one-minute 1080p clip at 8 megabits per second?

With 128 kilobits per second of audio, a 60-second clip comes to 60.96 megabytes. The video stream adds 8 megabits every second, the soundtrack adds its own share, and the total is divided by eight to get bytes.

Does the result include the file container?

No. It is the encoded picture and sound only; headers of a few kilobytes in MP4, MOV or MKV files are not included, and variable bitrate encodes will move the real size a little.

What bitrate is typical for 1080p or 4K?

About 8 megabits per second is a common 1080p delivery target, while 4K masters often sit between twenty and fifty, for example 40. Stereo audio is typically 128 or 320 kilobits per second.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/video/video-size

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/video/video-size \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_bitrate":8,"frame_rate":30,"duration":60,"audio_bitrate":128}'
{
  "video_bitrate": 8,
  "frame_rate": 30,
  "duration": 60,
  "audio_bitrate": 128
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "video.video_size",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_mb500
max_minutes60
max_megapixels3.9
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

This video file size calculator takes the resolution bitrate in megabits per second, the frame rate in frames per second, the duration in seconds, and the audio bitrate in kilobits per second, then returns the encoded payload in megabytes or gigabytes so you can size disks, upload quotas, and YouTube drafts before you hit record. Duration must be a positive finite number; zero, negatives, NaN, and Infinity fail with invalid_input and are not billed. The solver reports size_mb using SI megabytes of one million bytes, size_gb using SI gigabytes of one billion bytes, and a primary size with size_unit that switches to GB at one gigabyte. Frame count and bits per frame come from frame_rate so you can sanity-check a 24p versus 60p timeline at the same bitrate.

How encoded video file size is estimated from bitrates

The payload in bytes is therefore the sum of video bits per second and audio bits per second, multiplied by duration, divided by eight because there are eight bits in a byte. Dividing that byte count by one million yields size_mb; dividing by one billion yields size_gb. When the payload is at least one gigabyte the primary size field reports gigabytes and size_unit is GB, otherwise it reports megabytes. Frame rate does not change the bitrate-times-time product, but it tells you how many pictures that budget is spread across: bits_per_frame is video_bitrate in bits per second divided by frame_rate, and frame_count is frame_rate times duration.

Input contract, units, and response fields

POST a JSON body with four required finite numbers: video_bitrate in megabits per second, frame_rate in frames per second, duration in seconds, and audio_bitrate in kilobits per second. Aliases are accepted so common synonyms still work: resolution_bitrate, bitrate, video_mbps, mbps, and video_bitrate_mbps for video_bitrate; fps, frames_per_second, framerate, and frame_rate_fps for frame_rate; duration_seconds, seconds, length, and time for duration; audio_kbps, audio, aac_kbps, and audio_bitrate_kbps for audio_bitrate. Each field may arrive as a JSON number or as a numeric string. Duration must be a positive finite number: missing duration, empty strings, zero, negatives, NaN, and Infinity fail with invalid_input naming duration and are not billed. video_bitrate and frame_rate must also be positive finite numbers so bits_per_frame is defined. audio_bitrate must be a non-negative finite number; zero is allowed for a video-only estimate. There is no enum on frame_rate because the contract is any positive rate, including twenty-three point nine seven six and twenty-nine point nine seven, not a closed list of broadcast presets. On success the body echoes the four inputs, total_bitrate_kbps and total_bitrate_mbps, frame_count, bits_per_frame, bytes_per_frame, video_size_bytes, audio_size_bytes, size_bytes, size_mb, size_gb, size_mib, size_gib, the primary size and size_unit, plus formula and note strings. Example: video_bitrate 8, frame_rate 30, duration 60, audio_bitrate 128 returns 60.96 in size_mb with size_unit MB. Pair the response with your own encoder if you need a content-dependent VBR guess; this endpoint reports the constant-bitrate size from the rates you already chose.

Where a video file size calculator earns its keep

Educators teaching digital video show that doubling duration doubles file size when bitrates stay fixed, and that raising frame_rate at a fixed bitrate shrinks bits per frame rather than growing the file, which this calculator makes immediate. Backup and ingest scripts can reject a planned encode that would exceed an object-store quota by computing size_mb or size_gb first.

Teach how bitrate and duration scale storage

Show students that doubling duration doubles encoded size at a fixed bitrate, and that raising frame rate at the same bitrate spreads the same budget across more frames, using the bits_per_frame field the API returns.

Preflight card and archive quotas

Ingest scripts and camera checklists can reject a planned recording that would exceed a card or quota by computing size_gb first, without opening an encoder or reading a file.

How is video file size calculated from bitrate and duration?

Send video_bitrate in Mbps, frame_rate in fps, duration in seconds, and audio_bitrate in kbps. Size in bytes is (video_bitrate × 1e6 + audio_bitrate × 1e3) × duration / 8. size_mb divides by one million; size_gb divides by one billion.

When is the result in gigabytes instead of megabytes?

size_mb and size_gb are always returned. The primary size field and size_unit switch to GB when the payload is at least one SI gigabyte (1e9 bytes); shorter clips stay in MB.

What does the video file size calculator cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →