Copyglyph
🔒
U+1F512 · Lock · Miscellaneous Symbols and Pictographs · Common

Lock 🔒

🔒 (U+1F512) is a standard Unicode character that you can copy and paste anywhere text is accepted. This page provides a concise reference with safe tips, internal links, and practical guidance so you can use it reliably across apps and platforms.

What it is and where it’s used: Lock is part of the Symbols family (block: Miscellaneous Symbols and Pictographs). If you need styled or decorative alternatives, try our Fancy Text tool to generate compatible text that works in most modern interfaces.

History & usage: LOCK depicts the lock symbol. It represents security, privacy, or restricted access. In messages, use LOCK to indicate a private detail or a secure action, such as confirming a password or guarding sensitive information. In interfaces, it can mark restricted content or a secure setting, like an encrypted connection or a protected option. In collaboration, it signals that a file, folder, or link is gated or requires permission to view. For accessibility, pair LOCK with clear surrounding text so readers understand the intent. Cross‑platform appearance can vary; some colors or styles may look different in various apps. Ensure the surrounding text communicates the meaning if the emoji is not colorized or if a monochrome fallback is shown.

Copy and input: the quickest method is to copy the character here. You can also insert it by its codepoint U+1F512 in many development tools or editors. Some operating systems provide a character viewer or input palette that lets you search by name or code and insert the glyph into documents.

Display and fallback: if you see an empty box (tofu) or a placeholder rectangle, the active font might not include this codepoint. Switching to a font with broader Unicode coverage or using a fallback font usually fixes the issue. On the web, ensure the page’s font stack includes a general‑purpose fallback.

Related references: browse the Categories for similar characters. When choosing a symbol, prefer the official codepoint for semantic clarity and better compatibility with search, copy, and accessibility tooling.

See our category page for related symbols.

Technical details
  • Codepoint: U+1F512
  • General Category: So
  • Age: 6.0
  • Bidi Class: ON
  • Block: Miscellaneous Symbols and Pictographs
  • Script: Common
  • UTF-8: F0 9F 94 92
  • UTF-16: D83D DD12
  • UTF-32: 0001F512
  • HTML dec: 🔒
  • HTML hex: 🔒
  • JS escape: \u{1F512}
  • Python \N{}: \N{LOCK}
  • Python \U: \U0001F512
  • URL-encoded: %F0%9F%94%92
  • CSS escape: \1F512
How to type / insert

Fast copy: click the Copy button near the top of this page.

By codepoint: in many editors and IDEs, you can insert via the Unicode code U+1F512 or a built‑in character picker.

HTML: use the numeric entity 🔒 (hex) or 🔒 (decimal) when an HTML entity is needed.

Compatibility & troubleshooting

Font support: if the symbol does not render, the current font likely lacks this codepoint. Choose a font with broad Unicode coverage or allow a fallback font.

Web pages: ensure your CSS font stack includes a general fallback; avoid relying on images for common symbols to preserve accessibility and copyability.