Bought Pro? It is on your account. Sign in
SVG Creator Go Pro

Search icon (free SVG)

In shortA magnifying glass is the universal search icon. Place it inside or next to the search field so people recognise the input instantly. Download this search icon free in four styles as a 24×24 SVG that uses currentColor; every file is under 1 KB and free for commercial use.

Style collections: outline · filled · duotone · glyph · Updated 2026-10-21

Search icon, outline style, on a light backgroundSearch icon, outline style, on a dark background
Outline · 267 bytes
Search icon, filled style, on a light backgroundSearch icon, filled style, on a dark background
Filled · 275 bytes
Search icon, duotone style, on a light backgroundSearch icon, duotone style, on a dark background
Duotone · 352 bytes
Search icon, glyph style, on a light backgroundSearch icon, glyph style, on a dark background
Glyph · 203 bytes

Variations

The same search drawn four ways. Open any of them in the editor to recolour it, change the stroke, rotate or export PNG.

Search icon at 16 pixels
16px
Search icon at 20 pixels
20px
Search icon at 24 pixels
24px
Search icon at 32 pixels
32px
Search icon at 48 pixels
48px

Code

Inline SVG (HTML)

<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="10.5" cy="10.5" r="6.5"/><line x1="15.5" y1="15.5" x2="21" y2="21"/></svg>

React component

export default function SearchIcon({ size = 24, color = "currentColor", ...props }) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      stroke={color}
      strokeWidth={2}
      strokeLinecap="round"
      strokeLinejoin="round"
      {...props}
    >
      <circle cx="10.5" cy="10.5" r="6.5" />
      <line x1="15.5" y1="15.5" x2="21" y2="21" />
    </svg>
  );
}

CSS mask (recolour with color)

.icon-search {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / contain;
}

Image tag

<img src="https://mumshadjawad.com/svg-creator/icons/search-outline.svg" width="24" height="24" alt="">

Not sure which to use? See SVG icons in React, SVG icons in CSS and how to change an SVG icon's colour.

Details

Good for
search, find, filter, zoom
Grid
24 × 24, viewBox="0 0 24 24", 2px safe area
Outline stroke
2px, round caps and joins
Shapes
2 elements (outline, classic)
File sizes
outline 267 B · filled 275 B · duotone 352 B · glyph 203 B
Licence
Free for personal and commercial use, no attribution required
Collections
UI icons for apps and websites, developer and tech icons

Related icons

Need a different search?

Describe it ("search, minimal, rounded") and get four new variations.
Generate variations