Web Design & UI/UX9 min read

Icon vs Text Label: Which Should a Button Use?

An icon alone works when people already know it. Write a label when the action is new or a wrong tap costs something. Both rebuilt on the same screens, three mistakes, a decision table and the code.

By Boone
XLinkedIn
Icon vs Text Label: Which Should a Button Use?

An icon saves room. A word says what happens. Below are both on the same screens, when each one is right, three mistakes, two real products, a decision table and the code for an icon button that screen readers can name.

The question that decides it

Ask what happens if someone reads the button wrong. If they already know the picture, or a wrong tap is undone in a second, an icon can carry it. If they have to guess, or the guess costs them a file, spend the space on a word.

Here are the same four mail actions, Archive, Snooze, Move and Delete, built both ways.

An open message titled Venue moved to Thursday with a toolbar of four icons: an archive box, a clock, a folder and a trash can
The same message with the toolbar written as words: Archive, Snooze, Move and Delete

The icon row is calmer. The word row can be read by someone who opened the app a minute ago. Four short words fit here, but longer ones or more of them would not.

When an icon is right

A photo viewer with a toolbar of four icons under the picture: share, heart, info and trash
  • Your users already know it. A magnifying glass for search, an X to close, a heart to save a favorite.
  • People tap it many times a day. An action used constantly is learned fast, and a word under it soon turns into clutter.
  • Space is tight. A toolbar on a phone has room for a few small targets and not much text.

Be honest about the first point. Nielsen Norman Group counts only a few icons as mostly universal, home, print and the magnifying glass for search, and recommends a visible label with icons. Leaving close, share or a heart bare is a trade you make for space, so check that your own users read them.

A search field holding the words trail shoes, with a magnifying glass inside it, an X beside it and three suggestions below

Apple's guidance for toolbars leans the same way: prefer simple, recognizable symbols over text, "except for actions like edit that aren't well-represented by symbols." Android's rule for icon buttons is that the icon must have a clear meaning, typically for a common or frequently used action.

Where it fails: the first time someone meets a picture they cannot name.

When a label is right

  • The action is new, or exists only in your app. Nobody has learned your picture for it yet.
  • A wrong tap costs something. Delete, Send, Pay and Cancel subscription should say what they do.
  • The icon could mean two things. A folder is the classic case.

Unclear: a folder alone

A file row for Workshop plan with a lone folder icon on the right

Clear: the folder says Move to

The same file row with a button showing a folder icon and the words Move to

Does the folder move the file, save it or open the folder it sits in? Two words answer that before the tap.

Apple's button guidance puts it in one line: "Consider using text when a short label communicates more clearly than an icon."

Where it fails: when a row has more words than width.

Mistake 1: new actions as bare icons

Wrong: four mystery tools

A photo editor with four icons under the picture and no words

Right: icon and word

The same four icons labeled Cleanup, Match, Straighten and Stack

These four tools are our own inventions, so no one arrives knowing the pictures. The words cost one short line of height.

This is the middle ground. When there is room, the icon gives a shape to aim for and the word gives the meaning.

Mistake 2: delete on one unlabeled tap

Wrong: the trash can deletes at once

Three selected photos above a bar with share, folder and trash icons

Right: a step that says what goes

The same three photos with a sheet offering a red Delete 3 Photos button and a Cancel button

Picture the left screen deleting the moment the trash can is touched, right next to the folder. On the right, the tap opens a sheet that names the action and the number.

The trash icon can stay in the toolbar. What needs words is the moment of commitment. If the action can be undone easily, an Undo message after the tap can do that job instead, and toast vs banner covers where to put it.

Mistake 3: six labels in a phone toolbar

Wrong: six small labels

A phone toolbar crammed with six text actions, two of them cut off to Mark unr and Sha

Right: two words and More

The same toolbar with Archive and Delete spaced apart and a More button with three dots

Six labels on a 390 point screen shrink the type and still cut two of them off. Keep the main actions as words and move the rest behind More, where each one gets a full line.

If you mix words and symbols in one bar, give the words room. Apple warns that a text action sitting right next to a symbol action can read as a single button with a combined icon and label.

How two real products handle it

  • Gmail on a computer lets each person choose. Under Settings, See all settings, there is a "Button labels" section where you can switch the toolbar buttons to Text.
  • Photos on iPhone uses a trash icon to start a delete, then asks you to confirm. Apple's support page also notes that deleted photos stay in Recently Deleted for 30 days.

Gmail shows that the choice can belong to the user. Photos shows a compact symbol for getting to an action, with a confirmation around the costly part.

Icon or label: a decision table

SituationPickWhy
Search in a headerIconOne of the few pictures most people know
Close on a sheetIconFamiliar and used constantly
Favorite on a photoIconA toggle people learn quickly
A tool only your app hasIcon and labelNobody has learned the picture
Delete several filesLabel on the confirm buttonA wrong tap costs the files
Pay or SendLabelThe word is the promise of what happens
Folder on a file rowLabelIt could mean move, save or open
Bottom tab barIcon and labelNavigation needs to be read, not guessed
Six actions on a phoneTwo or three, then MoreWords do not fit, bare icons pile up
Edit in a toolbarLabelApple names it as poorly served by a symbol

For how the words themselves should read, see button labels. For drawing the set so the pictures match, see icon system design.

Test an icon before you drop its label

Nielsen Norman Group suggests three checks. First, if it takes you more than five seconds to think of an icon for something, an icon is unlikely to communicate it. Second, show the icon to people and ask what they expect it to do. Third, tell them the answer, come back a couple of weeks later and see whether they remember.

Do not count on hover to rescue a weak icon. The same research says labels should be visible without any interaction, and hover translates badly to touch screens.

Build an icon button that has a name

A screen reader needs words even when the screen shows none. A button takes its accessible name from the text inside it, or from aria-label when there is only a picture.

html
<!-- icon only: the name comes from aria-label --> <button type="button" class="icon-btn" aria-label="Search"> <svg aria-hidden="true" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2"> <circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/> </svg> </button> <!-- icon and word: the visible text is the name --> <button type="button" class="text-btn"> <svg aria-hidden="true" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2"> <path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8L10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2Z"/> </svg> Move to </button>
css
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: #0B65D8; } .text-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: #F2F2F7; color: #0B65D8; }

The 44 comes from Apple, which asks for a hit region of at least 44 by 44 points. The web minimum in WCAG 2.2 is lower, 24 by 24 CSS pixels or enough spacing around the target, and tap target size compares the numbers. When a button does show text, keep that same text in its accessible name, so someone using voice control can say what they see.

Tap a color to copy its code.

FAQ

Should buttons have icons or text?

Text is the safer default. Use an icon alone when your users already know it and space is tight. Use both when the action is new and there is room.

Which icons can be used without a label?

Nielsen Norman Group names home, print and search as mostly universal. Close, share and a heart are often left bare in apps, but test them with your own users.

Are icon-only buttons bad for accessibility?

Not if they are built properly. Give each one an accessible name, such as an aria-label, and a target large enough to hit. A visible word still helps people who do not recognize the picture.

Is a tooltip enough to explain an icon?

Not on its own. A tooltip that needs hover does little on a touch screen, so a label that matters should be visible.

Should a delete button be an icon or a word?

A trash icon can start the action. Where a mistake is costly, the button that confirms it should say Delete and name what will be deleted.

Sources

More from Brainy Papers

Keep reading