Feature flag: plainly explained.

A feature flag turns a feature on or off without deploying code. Learn how flags work, their types, best practices and the pitfalls to avoid.

Automation · Updated Nov 7, 2026

DEFINITION

A feature flag is a switch in the code that turns a feature on or off for some or all users without deploying new code.

CATEGORY

Automation

RELATED

Workflow, Webhook

Summarize this page with AI

01

What is a feature flag?

A feature flag (also called a feature toggle) is a conditional in the code that decides whether a feature is visible or active. The team can change its value from a dashboard or a config file, without shipping a new version. A feature can therefore be deployed to production while staying hidden until the team is ready to release it.

The idea separates two moments that used to be tied together: deploying code and releasing a feature to users. That separation reduces risk and makes releases much calmer.

02

How a feature flag works

The application asks a flag service, or reads a config value, whether a feature is enabled for the current user. The answer decides which code path runs.

if (flags.isEnabled('new-checkout', user)) {
renderNewCheckout();
} else {
renderOldCheckout();
}

Flags can be evaluated on the server or in the browser, and their value can depend on the user, the country, the plan or a random percentage of traffic.

03

Types of feature flags

  • Release flags: hide unfinished work and allow gradual rollouts.
  • Experiment flags: split traffic between variants for A/B tests.
  • Ops flags: act as a kill switch to disable a heavy or failing feature quickly.
  • Permission flags: reserve a feature for a plan, a beta group or internal users.
04

Feature flag vs branch vs config

Approach
Feature flagWhen the change appliesAt runtime, instantlyMain drawbackAdds conditional code to maintain
Long-lived branchWhen the change appliesAt merge and deployMain drawbackPainful merges and late feedback
Static configWhen the change appliesAt the next restart or deployMain drawbackNo targeting per user
05

Best practices and pitfalls

  • Give each flag a clear name, an owner and an expected removal date.
  • Remove a flag as soon as the feature is fully released, otherwise it becomes technical debt.
  • Keep the number of active flags low and test both the on and off paths.
  • Default to the safe state if the flag service does not respond.
  • Log which flag values a user saw, to make bugs reproducible.
06

Feature flag at BeBranded

Flags fit naturally into automated workflows: a webhook can flip a flag, and a rollout can be staged without a new deployment. Through our automation services, our team connects flags, alerts and release steps so that launches stay controlled and easy to reverse.

FAQ

Questions about Feature flag.

Another question?

Write to us
What is a feature flag?
A feature flag is a conditional switch in the code that enables or disables a feature at runtime, without a new deployment.
What is the difference between deploying and releasing?
Deploying puts code in production. Releasing makes a feature available to users. Feature flags let a team deploy first and release later.
What are feature flags used for?
They are used for gradual rollouts, A/B tests, beta programs, and kill switches that disable a failing feature instantly.
Are feature flags the same as feature toggles?
Yes. Feature flag, feature toggle and feature switch are different names for the same technique.
What are the risks of feature flags?
Old flags pile up, add complexity and multiply the code paths to test. Each flag needs an owner and a removal date.
How do I roll out a feature gradually?
Enable the flag for a small percentage of users, watch errors and metrics, then increase the percentage step by step until everyone has it.

Related

Related terms, and where to go next.

BeBranded
AI & automation

Automate your website with AI in 2026

Automate a website with AI: chatbots, Webflow MCP connector, Make, custom AI agents. Three levels, concrete use cases, and pitfalls to avoid.

Read the article
Claude AI: complete guide to use it effectively (2026)
AI & automation

Claude AI: what it is, how to access it and how to use it well (2026)

Discover Claude AI: how it works, real-world use cases, ready-to-use prompts, honest ChatGPT comparison, and best practices to save time in your daily workflow.

Read the article
Response to the critical video on Low-code: debunking misconceptions and highlighting the true value of Low-Code
No-Code

Response to the critical video on Low-code: debunking misconceptions and highlighting the true value of Low-Code

Is Low-Code really too expensive, unscalable and difficult to collaborate on? We debunk the myths from Micode’s video and reveal how to use them the right way.

Read the article

Let’s talk

Tell us what you want to build.

Thirty minutes with the people who will work on your project. You leave with a clear view of the scope, the timeline and the next steps.

What happens next

  1. 1A 30-minute callWe listen to your goals, your constraints and your context.
  2. 2A clear scopeWe map what is worth doing first, and what it takes.
  3. 3A costed proposalYou decide, with no commitment and no sales pitch.