John KuehJohn Kueh

magnifying glass icon

Heroicons · magnifying-glass · MIT

Download SVG

The Heroicons magnifying glass icon visually represents search functionality, commonly used in user interfaces to indicate a search bar or initiate a search action.

Common uses

  • Search input field
  • Global search button
  • Advanced search filter

Use it in React

Install
npm i @heroicons/react
Import & render
import { MagnifyingGlassIcon } from '@heroicons/react/24/outline';

<MagnifyingGlassIcon className="size-6" />

Styles

Heroicons ships this icon in 4 styles — each its own import:

24/outline
<MagnifyingGlassIcon className="size-6" />
24/solid
<MagnifyingGlassIcon className="size-6" />
20/solid
<MagnifyingGlassIcon className="size-6" />
16/solid
<MagnifyingGlassIcon className="size-6" />

Details

Library
Heroicons (324 icons)
License
MIT
viewBox
0 0 24 24
Keywords
magnifyingglasssearchfindlookupmagnifier

FAQ

What is the magnifying glass icon used for?
It's a universal symbol for search. Use it to denote search functionality, like a search bar or a button to trigger a search.
How do I use the magnifying glass icon in React?
Import it from the Heroicons library like this: `import { MagnifyingGlassIcon } from '@heroicons/react/24/outline'`. Then use it as a React component: `<MagnifyingGlassIcon className="h-6 w-6" />`.
What is the license for Heroicons?
Heroicons are distributed under the MIT license, allowing for free use in both personal and commercial projects.

Related icons

The same idea in other libraries, and near matches in Heroicons.

Looking for something else? Search Heroicons and 4 more libraries by description →

The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →