Icons

Material Symbols Lock Icon

The Lock icon is part of the Material Symbols collection — 18,547+ professional icons for login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards. On IconStash, you can preview, customize, compare across libraries, and download in SVG, PNG, JSX, or CSS format.

Interactive Customizer

1.5px
128px

About this icon

Use the Lock icon

This fill icon from Material Symbols works well across login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards. The fill visual style is specifically suited for interface components and product UI.

Customize it in IconStash: pick a color preset or enter any hex code, set exact dimensions, adjust stroke weight, then copy SVG code or download a PNG — no account needed.

Export formats

Copy clean SVG vectors with one click, generate custom-size PNG files from 16px to 512px, export JSX/React components ready to paste into your project, or use the icon as a CSS background-mask for flexible theming.

All exports are based on the same editable vector — so the Lock icon stays pixel-perfect at 16px, 24px, 48px, and any large marketing size.

Design & UX integration

Aesthetic characteristics

Lock belongs to Google's Material Symbols, which replaces static icon files with a variable font. Weight, Fill, Grade and Optical Size are all adjustable axes, so one file covers what used to need five. Optical Size is the most useful: the glyph is subtly redrawn for small sizes rather than just scaled down.

UX best practices

Security icons carry more weight than most: users read a lock, shield or key as a trust signal, so the Lock icon should never be decorative. Place it next to the mechanism it actually describes — the payment step, the HTTPS indicator, the permission toggle — rather than in a generic header where it implies protection that may not exist.

Use in your project

React / npm — Material Symbols

/* Use Google Fonts CDN */
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">

<!-- HTML usage: -->
<span class="material-symbols-outlined">lock</span>

Copy the SVG markup directly from the IconStash editor to use the Lock icon without any npm package — paste it into HTML, JSX, or a design tool.

Inline SVG (copy & paste)

<svg 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" role="img" aria-label="lock icon"><path fill="currentColor" d="M6 22q-.825 0-1.412-.587T4 20V10q0-.825.588-1.412T6 8h1V6q0-2.075 1.463-3.537T12 1t3.538 1.463T17 6v2h1q.825 0 1.413.588T20 10v10q0 .825-.587 1.413T18 22zm7.413-5.587Q14 15.825 14 15t-.587-1.412T12 13t-1.412.588T10 15t.588 1.413T12 17t1.413-.587M9 8h6V6q0-1.25-.875-2.125T12 3t-2.125.875T9 6z"/></svg>

Library & related icons

About Material Symbols

Google's newest icon format built on variable font technology. 18,500+ icons with four adjustable axes: Weight, Fill, Grade, and Optical Size — all from a single file.

  • Total icons: 18,547+
  • Style: variable
  • License: Apache 2.0
  • npm package: @material-symbols/svg-400
Browse all 18,547 Material Symbols icons →

People also search for

Frequently asked questions

What is the Lock icon?

The Lock icon is a fill-style SVG icon from the Material Symbols library, categorized under Security. It is designed for use in login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards. On IconStash you can preview it, customize its color and size, and export it in SVG, PNG, JSX, or CSS formats directly from your browser.

Is the Lock icon free to use?

Yes. Material Symbols is licensed under Apache 2.0, making it free for personal and commercial use. This means you can freely use the Lock icon in personal, commercial, and open-source projects. IconStash provides SVG and PNG access at no cost with no login required.

How do I use the Lock icon in React?

Install the package with `npm install @material-symbols/svg-400`, then import the component into your React file. IconStash's detail panel shows you the exact npm command, import statement, and JSX usage snippet for every icon — just click the Code tab and copy with one click.

What is the Material Symbols icon library?

Google's newest icon format built on variable font technology. 18,500+ icons with four adjustable axes: Weight, Fill, Grade, and Optical Size — all from a single file. It contains 18,547+ icons. IconStash indexes the complete Material Symbols collection alongside 27 other open-source libraries — 134,701 icons total — in a single unified search interface.

Can I download the Lock icon as a PNG?

Yes. Open the Lock icon in IconStash, set your desired pixel size (16px to 512px) in the detail panel, and click Download PNG. You can also export a multi-resolution ZIP pack containing 16, 24, 32, 48, 64, 128, 256, and 512px PNGs with a single click.

What does the fill icon style mean?

An icon in fill style uses a clean SVG vector format. This style is best suited for interface components. The Material Symbols Lock icon follows this visual convention throughout the Material Symbols design system.

Can I change the Lock icon's color and size before downloading?

Yes. In IconStash's editor panel, choose from six color presets (blue, slate, green, purple, red, teal) or enter a custom hex value. Drag the size slider (16–256px) or type an exact pixel value up to 512px. Changes apply instantly to the SVG preview, the PNG output, and the copied code.