Font Awesome Magnifying Glass (Search icon, Zoom Glass)

The Font Awesome magnifying glass can be used to represent search, zoom, or detective functions. In Font Awesome version 6, the search icon has been replaced with the magnifying glass. To use the magnifying glass icon in Font Awesome 6, you need to add the following code to your HTML file: "fa-solid fa-magnifying-glass"

Fontawesome Version 6.X

magnifying glass

Web

<i class='fa-solid fa-magnifying-glass'></i>

React

<FontAwesomeIcon icon="fa-solid fa-magnifying-glass" />

Vue

<font-awesome-icon icon="fa-solid fa-magnifying-glass" />

magnifying glass

Web

<i class='fa-solid fa-magnifying-glass' style='color: white'></i>

React

<FontAwesomeIcon icon="fa-solid fa-magnifying-glass" style={{color: 'white'}} />

Vue

<font-awesome-icon icon="fa-solid fa-magnifying-glass" :style="{color: 'white'}" />

magnifying glass

Web

<i class='fa-solid fa-magnifying-glass' style='color: red'></i>

React

<FontAwesomeIcon icon="fa-solid fa-magnifying-glass" style={{color: 'red'}} />

Vue

<font-awesome-icon icon="fa-solid fa-magnifying-glass" :style="{color: 'red'}" />

magnifying glass

Web

<i class='fa-solid fa-magnifying-glass' style='color: blue'></i>

React

<FontAwesomeIcon icon="fa-solid fa-magnifying-glass" style={{color: 'blue'}} />

Vue

<font-awesome-icon icon="fa-solid fa-magnifying-glass" :style="{color: 'blue'}" />

magnifying glass

Web

<i class='fa-solid fa-magnifying-glass' style='color: #f3da35'></i>

React

<FontAwesomeIcon icon="fa-solid fa-magnifying-glass" style={{color: '#f3da35'}} />

Vue

<font-awesome-icon icon="fa-solid fa-magnifying-glass" :style="{color: '#f3da35'}" />
Try it Yourself

How to add Font Awesome magnifying glass Icon ?

Font Awesome Icon fa solid fa magnifying glass Icon can be added to any web page simply as below. You can integrate Icon in web pages by just adding following below syntax & icon code.

Icon -
<i class='fa-solid fa-magnifying-glass'></i>
Icon Code -
fa-solid fa-magnifying-glass

HTML Code

Get complete html code for icon magnifying glass

                    
                    <!DOCTYPE html>
                    <html>
                        <head>
                        <title>Page Title</title>
                        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"  crossorigin="anonymous" referrerpolicy="no-referrer" />
                       </head>
                        <body>
                        <i class='fa-solid fa-magnifying-glass'></i>
                        </body>
                    </html>                    

Tags

eyeglass.,hand glass.,hand lens.,lens.,loupe.,simple microscope.,glass icon,magnifier icon,search box with magnifying glass,mag glass,zoom glass,Search

Change Font Awesome Icon Magnifying glass Color

Sometimes we need icons in different color, as we suggested by adding css style we can change color. Here we have created one example to change color of icons with css classes.


    <style>
.blue-color {
color:blue;
}
.green-color {
color:green;
}
.teal-color {
color:teal;
}
.yellow-color {
color:yellow;
}
.red-color {
color:red;
}
</style>
<i class='fa-solid fa-magnifying-glass blue-color'></i> <i class='fa-solid fa-magnifying-glass green-color'></i> <i class='fa-solid fa-magnifying-glass teal-color'></i> <i class='fa-solid fa-magnifying-glass yellow-color'></i> <i class='fa-solid fa-magnifying-glass red-color'></i>

Output of the above example will be as below-


Note- Make Sure You have included the below Font Awesome file in header-
            
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"  crossorigin="anonymous" referrerpolicy="no-referrer" />            
            
Related Icons

Magnifying Glass Icon Font Awesome - FAQs

⭐What is the Font Awesome Magnifying Glass Icon code?

Icon Code is - fa-solid fa-magnifying-glass.

⭐ What does the fa-solid fa-magnifying-glass Icon mean?

fa-solid fa-magnifying-glass is the Icon code of Font Awesome Magnifying Glass.

⭐ Can we add fa-solid fa-magnifying-glass Icon in different sizes?

Yes, you can Icon of fa-solid fa-magnifying-glass in various pixels.

⭐ How to add a Blue color Font Awesome Magnifying Glass Icon?

Add the blue color Magnifying Glass icon of the font awesome by using code: fa-solid fa-magnifying-glass style='color: blue;'.

⭐ How to make white color icon of a Font Awesome Magnifying Glass?

To change the Magnifying Glass icon to white color use code: fa-solid fa-magnifying-glass style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?