The little red number on a tab, the dot on an avatar, the "Sale" label on a product. Learn count, dot and status badges, app icon badges on iOS and Android, and the zero, overflow, stale count and accessibility bugs testers find in them.
40–60 min Feedback & overlays iOS · Android · Web Also called: Notification badge, Counter, Dot indicator, Status badge, Pill
Your progress
A red 3 on the Chats tab. A dot on the bell. Sale −20% on a pair of running shoes. A 12 on your banking app’s icon that won’t go away, no matter how many times you open the app.
Badges are tiny, but they make a promise: “there’s something here for you”. When the promise is wrong (a “0” that should be gone, a count that never updates, a number nobody can hear) users stop trusting it, or they open the app twenty times a day for nothing. Here’s how to test them.
Part Not started
What is a badge?
A badge is a small marker attached to another element (an icon, a tab, an avatar, a card) that adds a bit of status. It doesn’t do anything on its own; tapping the badge is tapping the thing it sits on.
There are three kinds, and it’s worth naming them correctly in bug reports:
The icon, tab, avatar or card the badge belongs to. The badge sits on its corner and must never hide it.
2
Count badge
A number: unread messages, items in the cart. Capped ("99+") and hidden at zero.
3
Dot badge
No number, just "something new here". Also used for presence (online) on avatars.
4
Status label (pill)
"Sale −20%", "Sold out", "In transit". A word that describes the item, not a count. The text carries the meaning, color only supports it.
5
Separator ring
A thin outline in the background color, so the badge stays readable on top of the icon or photo.
6
Accessible name
Not visible, but essential: the screen reader must hear the count with the anchor, e.g. "Messages, 3 unread".
Check this part
A green dot on an avatar shows that the person is online. Which kind of badge is it?
A dot badge has no number. It says that something is new, or shows a presence state such as online.
What happens when you tap a badge?
A badge doesn't do anything on its own. Tapping the badge is tapping the thing it sits on.
A small marker on another element: count badges, dot badges and status labels, and what each one means.
Part Not started
Designs & variants
Several of these react to taps. Use the switch to compare light and dark.
Tab bar badge
iOS
Red pill with a white number on the top-right of the icon. Tap Chats: the badge disappears when the messages are read.
Small and large badges
Android · Material 3
A 6 dp dot for “something new”, a 16 dp badge for numbers. Material caps at four characters: 999+.
shop.example
Tap the bag to add items (caps at 9+, hides at 0).
Header icons
Web
Cart count and a notification dot. Each icon button needs a name that includes the count.
ANOnline
MKAway
JSOffline
Presence on avatars
iOS · Android · Web
Green, orange, nothing. Without the text below, colorblind and screen reader users can't tell who's online.
Trail runner 2Sale −20%
City sneakerNew
Rain jacketSold out
Wool socksOnly 2 left
Order #4821In transit
Status labels (pills)
iOS · Android · Web
Words, not numbers: Sale, New, Sold out. The word carries the meaning; the color is a bonus.
12iOS
Android dot
No badge
App icon badges
iOS · Android
Set by the OS from the app's notifications. iOS shows a number (if the user allows badges); Android launchers usually show a dot.
Where badges sit
On icons in tab bars and navigation bars: the top-right corner of the icon, overlapping it slightly, never covering it. See Navigation Bar and Tabs.
Inside a tab or list row: a counter next to the label (Inbox 24, Unread 3). Here it’s part of the text, not floating on top.
On avatars: a presence dot (online, away) in the bottom-right corner, with a ring in the background color so it stands out from the photo. The avatar itself is covered in Avatar.
On cards and product tiles: a status label in a corner or next to the price, like the “Sold out” label on the Card page.
On the app icon: drawn by the operating system, not by the app. More on that below.
The rules for counts
Zero hides the badge. “0” means “nothing new”, which is exactly what no badge says. A red “0” is a bug.
The number is the truth. It equals the number of unread (or new) things, not “how many arrived since you last looked”, unless the spec says otherwise.
It updates when the truth changes. Reading a message, marking all as read, reading it on another device, deleting it: the badge follows, without a restart.
It has words for screen readers. The visible “3” becomes “Chats, 3 unread” in the accessible name.
When does the count update?
Ask this before you test, because there are two valid designs:
On open or refresh: the app fetches counts when it starts, comes back from the background or the user pulls to refresh. Typical for shops and news.
Either way, the badge must be right after every way of reading: opening the item, “Mark all as read”, swiping it away, reading it on the web, and coming back from the background (Background and foreground). And when the user reads something, the badge should drop immediately, without waiting for the next sync.
App icon badges (iOS and Android)
The number or dot on the app icon is drawn by the system, so it follows the system’s rules:
iOS shows a red number on the icon. The app can only set it if the user allowed notifications with badges; the user can switch badges off per app in Settings › Notifications. The app (or its server, via the push payload) is responsible for setting it back to zero. A stuck icon badge is one of the most common badge bugs.
Android (8.0 and newer) shows notification dots: a dot appears while the app has active notifications, and long-pressing the icon shows them. Some launchers (Samsung, for example) can show a number instead. The dot disappears when the notifications are dismissed, so test dismissing them, not only opening the app. On Android 13+, notifications need a runtime permission, so no permission means no dot. See Push Notifications.
Web: installed web apps can set an icon badge where the browser and OS support it. Websites often put the count in the page title instead: (3) Inbox.
Dev note
Icon badges use the Badging API (navigator.setAppBadge()).
Push it to the limits
Try the counts testers always try: 0, 1, 99, 100, 1,000 and 12,345. Then shrink the screen, raise the text size and turn off the count in the accessible name.
🧪 Badge stress test
Feed the badge awkward numbers, shrink the screen and make the text huge. Watch the tab bar and what a screen reader would say.
Unread count: 3
Cap the number at
Only matters above the cap: try 100 or 1,000.
Style
Screen width: 360px
Text size: 100%
VoiceOver: "Chats, 3 unread, tab, 1 of 5"
Real count 3 · badge shows "3"
Looks good. Now try 12,345 with no cap, 0 without hiding, a 260px screen or 200% text.
Check this part
All messages have been read. What should the Chats tab badge show?
Zero means nothing new. No badge says that clearly; a red "0" just creates noise.
There are 1,284 unread updates. What is the usual way to show that on a tab bar icon?
A capped number fits on the icon and still says "a lot". The exact count can be shown inside the screen.
Who draws the badge on the app icon?
The system draws it. On iOS the app needs notification permission with badges and must set the badge back to zero itself.
Where badges sit, the rules for counts (zero hides the badge, big numbers are capped), when counts update, and app icon badges drawn by the system.
Part Not started
When to use it
To show that new or unread things are waiting somewhere else: messages, notifications, order updates.
To show how many items are in a container the user cares about: cart, downloads queue.
To show a short status that helps users scan a list: Sale, New, Sold out, Delivered.
To show presence: online, away, busy.
Good and bad uses
No badge when there's nothing new
ChatsCallsUpdatesSettings
The Calls tab is quiet. Users can trust that a badge means something.
A badge that says 0
Chats0CallsUpdatesSettings
Red and alarming, but it means “nothing”. Users tap it anyway, every time.
Capped at 99+
ChatsCalls99+UpdatesSettings
Fits on the icon and says the same: “a lot”.
The exact four-digit count
ChatsCalls1284UpdatesSettings
“1284” is too wide for the tab and spills over the neighbor.
Status as a word
Trail runner 2€79.20Sale −20%
City sneaker€89.00New
“Sale −20%” and “New” are readable by everyone, including screen readers.
Status as a colored dot
Trail runner 2€79.20
City sneaker€89.00
Red means sale, green means new, if you can see the difference. Many people can’t.
Also avoid badges as decoration (a permanent “NEW” on a feature launched a year ago), badges on everything at once (if every tab has a badge, none stands out), and badges for things the user can’t act on.
Check this part
A shop marks sale items with a red dot and new items with a green dot. What do you report?
Red and green look similar to many people and say nothing to screen readers. Status needs words.
Every tab in the app has a badge, all the time. What's the problem?
If everything has a badge, the badges stop meaning anything. Avoid decorative and permanent badges too.
Use badges for new or unread things, counts, short statuses and presence; never show 0, uncapped numbers or color-only status.
Tab says 3, the list shows 2 unread, the app icon says 5
Medium
11
Negative or nonsense values
“-1” after deleting, “NaN”, “undefined”
Medium
12
Localization
“99+” or “Sold out” not translated, or a long word like “Ausverkauft” truncated
Low–Medium
Find the bug
This messenger has six badge bugs. Explore it like a tester:
Look at every tab’s badge. Then visit each tab and come back.
Open a few unread chats and go back. Does the Chats badge agree with the list? Try Restart app.
Turn on Screen reader and tap a tab once to hear it (twice to open it).
Open Shop and turn on the grayscale color filter.
Turn on Larger text and look at the tab bar.
🐞 Bug hunt: Messenger badges
This demo has 6 hidden bugs. Explore it like a tester, then check your findings.
Found0/6
9:41
Chats
Device settings
1
Hint: Open the Calls tab, then go back to Chats and look at the Calls icon.
Calls shows a red "0" after the missed calls were seen
Opening Calls sets the missed count to 0, but the badge stays visible with "0". The code checks whether a count exists, not whether it is greater than zero. Expected: the badge disappears at 0.
2
Hint: Look at the Channels tab badge, especially on the right edge of its tab.
"1284" is not capped and spills over the next tab
The full number is shown and the pill is wider than the tab, running into the Shop tab. With Larger text it gets worse. Expected: a cap such as 99+ (iOS convention) or 999+ (Material 3), and the badge stays inside its tab.
3
Hint: Open Ana's and Marko's chats, go back, and compare the badge with the list. Then tap Restart app.
Chats badge doesn't update after reading
The list shows fewer unread chats, but the badge still says 3. Only after a restart does it drop. The count was calculated once at launch instead of being derived from the unread chats. Expected: the badge updates immediately after each chat is read.
4
Hint: Turn on Screen reader, tap the Chats tab once, then a chat row once.
Screen reader hears the tab but not the count
The tab is read as "Chats, selected, tab, 1 of 5". The red 3 is hidden from assistive technology and nothing replaces it. The chat rows do it right ("Ana, 2 unread messages…"). Expected: "Chats, 3 unread, tab, 1 of 5".
5
Hint: Open Shop, read the legend, then turn on the grayscale color filter. Also try the screen reader on a product.
Sale and New differ only by color
Products are marked only with a red or green dot. In grayscale (and for many colorblind users) the two dots look the same, and the screen reader says nothing about them. This fails WCAG 1.4.1 Use of Color (Level A). Expected: a text label such as "Sale −20%" or "New", which also ends up in the accessible name.
6
Hint: Turn on Larger text and look at the Chats, Calls and Channels icons.
With Larger text the badge covers the icon
To keep the bigger badge inside the narrow tab, the large-text layout moves it onto the icon. Now a red blob hides the chat bubble, phone and bell. Expected: the badge stays at the icon's top-right corner, overlapping only slightly, at every text size.
Check this part
The badge drops only after restarting the app. Which test finds this?
Badges must update when the data changes. Test every way the count can go down, without a restart.
Why do badge bugs matter even though badges are tiny?
A badge promises there's something new. When the promise is wrong, users stop trusting it.
Red zeros, counts that never drop, stuck app icon badges, overflowing numbers and counts screen readers never hear.
Part Not started
How to test it
Start without any tools. Find a screen that uses this component and use it the way a real user would: slowly, then fast, then in ways nobody planned for. Tick off the checklist as you go. Most of it needs only your eyes and your fingers.
Then try the example test cases. Some of them need a little setup:
A screen reader: VoiceOver on iPhone, TalkBack on Android. Both are in the phone’s Accessibility settings. See Mobile accessibility.
New to this? Do the checklist first and skip any test case whose setup you don’t know yet.
The screen reader says something like "Chats, 3 unread, tab, 1 of 5". After reading one chat, it says "2 unread".
TC-BDG-006Status labels without colorpositivemedium
Steps
Open the shop list
Turn on a grayscale color filter (iOS: Accessibility › Display & Text Size › Color Filters; Android: Accessibility › Color correction or Developer options › Simulate color space)
Expected result
Every status (Sale, New, Sold out) is still readable as text.
The badge is hidden with aria-hidden="true". On the web, use aria-label on the button or visually hidden text; on iOS the accessibilityValue or label; on Android the contentDescription or state description.
Say what’s capped. If the badge shows “99+”, the name can say “more than 99 unread”. Never just “99 plus”.
Tab bar badges: red pill with white text by default.
Dev note
badgeValue on UITabBarItem (a string; "0" shows a zero) or .badge() in SwiftUI.
App icon badges need notification permission with badges. Test: allow, deny, and turning Badges off later in Settings › Notifications.
Push payloads can set the icon badge. Check it’s correct after a push arrives while the app is closed, and that it clears when the app is opened and the items are read.
Test with VoiceOver and the largest Dynamic Type size (long-press a tab bar item to see the large content viewer).
Material 3 badges: a 6 dp dot or a 16 dp badge with up to four characters (“999+”).
Dev note
Badge / BadgedBox (Compose) or BadgeDrawable (Views).
App icons show notification dots on most launchers; the dot follows the app’s active notifications. Test dismissing notifications, and the Notification dot setting in system settings.
Android 13+ asks for notification permission; without it there are no notifications and no dots (App permissions).
Test with TalkBack, a large font size and display size, and on a narrow phone in landscape.
Badges are usually custom-built. Check the button’s accessible name in DevTools’ Accessibility pane: does it include the count?
The page title count (3) Inbox and installed web apps’ icon badges (where supported) must match the in-page badge.
Dev note
Icon badges are set with navigator.setAppBadge().
Test at 200% zoom and narrow viewports: header badges often overlap the logo or the next icon (Responsive design testing).
Check realtime updates in two browser tabs: read in one, watch the other.
Check this part
VoiceOver says "Chats, tab, 1 of 5" while the badge shows 3. What is wrong?
Blind users never learn about the unread messages. The tab should be read as "Chats, 3 unread".
On Android, when does the notification dot on the app icon go away?
The dot follows the app's active notifications, so test dismissing them, not only opening the app.
The count goes into the accessible name, status is never color alone, contrast is measured, and each platform draws badges differently.
Key takeaways
Three kinds: count badges, dot badges and status labels. Name them correctly in bug reports.
Zero hides the badge, big numbers are capped (99+, 999+), and the badge stays inside its space without hiding the icon.
The count is data: it must match the list, update immediately when items are read, and agree with the app icon badge.
App icon badges belong to the OS: on iOS they need notification permission with badges; on Android they’re usually dots tied to active notifications.
Accessibility: the count goes into the accessible name (“Chats, 3 unread”), status uses words, not only color, and contrast is checked in light and dark mode.
Finished this page?Nice work, this page is complete!
Mark it as done to track your progress. It's saved in this browser, no account needed.