Icons

Material Design Lock Icon

IconStash indexes the Lock icon from Material Design Icons alongside 134,701 icons from 28 open-source libraries. It a clean SVG vector format, making it well suited for login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards. Set an exact pixel size from 16px to 512px and download a lossless PNG in one click.

Interactive Customizer

1.5px
128px

About this icon

Use the Lock icon

The Lock icon from Material Design Icons fits naturally in login and authentication flows, permission management panels, privacy settings, VPN apps, and security dashboards. Its fill style makes it ideal for interface components and product UI.

Open it in IconStash to set stroke color via presets or a custom hex value, choose an exact pixel size (16–512px), control stroke width (0.1–3px), and preview against dark, light, or checkered backgrounds before downloading.

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 comes from Google's Material Design icon set, which ships five coordinated themes: Outlined, Rounded, Sharp, Two Tone and Filled. Outlined is the default for dense UI, Filled reads better for selected or active states, and all five share identical geometry — so you can swap themes without shifting your layout by a pixel.

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 Design Icons

npm install @mui/icons-material

import LockOutlined from '@mui/icons-material/LockOutlined';

// JSX usage:
<LockOutlined fontSize="small" />

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="M12 17a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2m6-9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h1V6a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6-5a3 3 0 0 0-3 3v2h6V6a3 3 0 0 0-3-3"/></svg>

Library & related icons

About Material Design Icons

Google's official icon set for Material Design. 14,000+ icons in five themes: Outlined, Rounded, Sharp, Two Tone, and Filled. Used across Android and web Google products.

  • Total icons: 14,001+
  • Style: multi-style
  • License: Apache 2.0
  • npm package: @mui/icons-material
Browse all 14,001 Material Design Icons 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 Design Icons 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 Design Icons 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 @mui/icons-material`, 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 Design Icons icon library?

Google's official icon set for Material Design. 14,000+ icons in five themes: Outlined, Rounded, Sharp, Two Tone, and Filled. Used across Android and web Google products. It contains 14,001+ icons. IconStash indexes the complete Material Design Icons 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 Design Icons Lock icon follows this visual convention throughout the Material Design Icons 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.