Skip to content

Glossary · ProductAlso: Feature toggle

What is a feature flag?

A feature flag is a switch in your code that turns a feature on or off, or on for specific users, at runtime, without deploying new code. It separates deploying code from releasing a feature to people, so unfinished work can ship safely hidden and be switched on when it is ready.

Why it matters

Flags enable gradual rollouts, quick kill switches when something goes wrong, beta programmes and experiments.

Each flag adds a code path, so flags need owners and should be removed once a feature is fully launched.

Example

// in practice

A new checkout is enabled for 5% of users, monitored for errors, then rolled out to everyone over a week.

Go deeper

Next step

Need this done properly?

Tell us what you are building. A senior engineer replies within one business day with specific, honest next steps.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts