Skip to content

Sizes and storage

Constant Quality (CRF) Encoding Explained

Instead of choosing a bitrate, you choose a quality and let the encoder decide the size. What the setting means, typical values and when it is the right tool.

3 min read · Published 19 November 2026

Most people encode video by choosing a bitrate and accepting whatever quality results. Constant quality encoding turns that around. You choose the quality you want, and the encoder uses as many bits as each moment needs to reach it. Simple scenes cost few bits and complicated ones cost many, and the file size becomes the result of the decision instead of the input to it.

It is often called CRF, for constant rate factor, and it is the default way many encoders are used. This article explains what the number means, what values are sensible and when it is not the right choice.

The idea

In a normal video, some scenes are easy to compress and some are not. A still shot of a wall needs very few bits to look perfect, while a shot of rushing water needs a great many. A fixed bitrate forces the same budget onto both, which wastes bits on the wall and starves the water. Constant quality lets each scene take what it needs, aiming for the same level of visible quality throughout.

What the number means

CRF is a scale where lower numbers mean higher quality and larger files, and higher numbers mean lower quality and smaller files. For the widely used H.264 encoder, the scale runs from zero, which is lossless, upwards, with a default value of twenty three. As a rough rule of thumb, an increase of about six points roughly halves the bitrate, and a decrease of six roughly doubles it, though the exact effect depends on the content.

CRF value (H.264)Typical resultUse
17 to 18Visually near losslessArchive and high quality masters
19 to 22High qualityGood delivery files where size is secondary
23The default, a balanced resultGeneral use
24 to 28Noticeably smaller, some lossWeb video where size matters
Above 28Visible quality lossVery small files, previews

Different encoders use different scales. The newer H.265 encoder has a default of twenty eight and its numbers are not directly comparable with H.264's. Always read the documentation for the encoder you are using.

When it is the right tool

  • You care about quality and are less concerned about the exact file size.
  • You are making files for your own use, an archive or a master copy.
  • You are uploading to a platform that will re-encode your video anyway.
  • You are not sure what bitrate to choose, and want the encoder to decide.

When it is not

Constant quality means you cannot know the file size in advance, or the peak bitrate. That is a problem when there is a hard limit. If a file must fit under an email attachment limit, or a stream must not exceed a connection's upload speed, you need to control the bitrate or the size directly. Live streaming in particular needs a bitrate you can count on, which is why it uses constant bitrate, not constant quality.

You needUse
Best quality for the effortConstant quality (CRF)
A file under a fixed sizeTwo-pass encoding to a target bitrate
A stream that fits a connectionConstant bitrate
Predictable bandwidth for deliveryCapped variable bitrate

A sensible approach

  1. Encode a short representative clip at the default value.
  2. Look at the result, especially in fast motion and dark areas.
  3. If it looks good, try a higher number to see how much smaller you can go before it shows.
  4. If it does not, try a lower number.
  5. Use the number you settle on for the whole project.

The compression estimator on this site shows how much smaller a file becomes at a given reduction in bitrate, which helps you judge how far to push it. The point is to find the highest number, and so the smallest file, at which you cannot see a difference, and then stop.

Common questions

What is CRF?

Constant rate factor, a way of encoding where you choose a quality level and the encoder uses as many bits as each scene needs to reach it. Lower numbers mean higher quality and bigger files.

What CRF value should I use?

For H.264, 23 is the default and a balanced starting point. Values around 18 are near lossless for masters, and values in the mid twenties give noticeably smaller files for web use.

Does a CRF change of 6 matter?

As a rough rule, about six points roughly halves or doubles the bitrate, depending on the content. It is a useful guide for judging how far to move.

When should I not use constant quality?

When there is a hard size or bandwidth limit, such as an email attachment or a live stream. There you need to control the bitrate or the size directly.

Tools for this

Everything below runs in your browser. No file leaves your machine.

Compression Estimator

See what a target size costs you

Video Bitrate Calculator

Find the bitrate to fit a size limit

Related reading