Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

CKE-001 Published

Cookie banner bar

The basic form of cookie consent: a full-width bar at the bottom (or top) of the screen, with a short explanation of how cookies are used and "Accept" and "Reject" on one line.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Cookie banner bar

Cookie banner bar UI design (desktop wireframe)

Wireframe (mobile) | Cookie banner bar

Cookie banner bar UI design (mobile wireframe)

What changes on mobile

  1. Buttons in two columns, settings below: Three buttons in a row would wrap their labels, so Accept and Reject sit in two columns of equal width.
  2. Short text, with details behind a link: The text is kept to two or three lines so the bar does not cover half the screen.

Before you choose this pattern | Cookie banner bar

Good fit

  • You use analytics or advertising cookies and want visitors to choose once when they open a page
  • You want to keep the interruption to reading as small as possible
  • Detailed settings by category can live on a separate screen

Poor fit

Why this wireframe works | Cookie banner bar

It does not get in the way of reading

The bar appears at the edge of the screen, so visitors can start reading right away. Its shape alone shows that the site works before anyone chooses.

Accept and Reject look the same

Giving the two buttons the same size and look means either choice takes the same effort, and nobody hesitates before pressing.

Details go behind “Customize”

Leaving category switches out of the bar keeps it to a single line. Only people who want to fine-tune their choice open a separate screen.

Common mistakes | Cookie banner bar

Reject is a small text link

When only Accept is a large button and Reject is a small link inside the text, rejecting becomes harder. Make both of them buttons of the same shape.

The bar hides content or buttons

A fixed bar that sits on top of form buttons or the focused element makes them impossible to use. Add bottom padding equal to the bar’s height to the content.

The bar keeps coming back after a choice

If the choice is not saved, the bar appears on every page. Save the choice and stop showing the bar.

The text never says what cookies are for

“This site uses cookies” alone gives people nothing to decide with. State the purpose, such as analytics or advertising, in one line.

FAQ | Cookie banner bar

Should the bar go at the top or the bottom of the screen?

The bottom interrupts reading less. Another option is to place it above the header without fixing it; it is then the first thing on the page, so screen reader users notice it more easily. Either way, the two buttons still carry equal weight.

Can I show just an “OK” button?

With only an accept button, there is no way to reject. If you are asking for consent, rejecting must take the same effort. If you are only informing people about cookies and data sent to outside services, without asking for consent, word the notice so that is clear.

Is a cookie consent bar always required?

Whether you need consent, and how much you need to explain, depends on the cookies you use, the data sent to outside services, and the rules where your users are. Examples include GDPR and the ePrivacy Directive in the EU, US state laws such as CCPA/CPRA, and Japan’s rules on sending user data to third parties. This pattern is an example of how to build the screen; for legal decisions, check with a specialist as needed.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published