Key

๐Ÿ”‘

Shortcodes

Copy and paste codes for Key symbol ๐Ÿ”‘ to use in your websites, apps, blogs, and more.

Unicode
U+1F511
HTML Code
🔑
HEX Code
🔑
CSS Code
\1F511
JS/JSON
\u1F511
Unix/C/PHP/JAVA
0x1F511
URL-encode
%F0%9F%94%91
copied

Customize Key Symbol

Customize ๐Ÿ”‘ symbol as you like and download Key as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
๐Ÿ”‘

                        
                    

How to add Key symbol in HTML, CSS, and JS?

Insert ๐Ÿ”‘ Key using HTML

1. Copy-paste Key directly:
<span>๐Ÿ”‘</span>
2. HTML Decimal Code:
<span>&#128273;</span>
3. Hexadecimal Code:
<span>&#x1F511;</span>
Preview: ๐Ÿ”‘

Add Key symbol with CSS

.key::before {
    content: '\\1F511';
}
Preview: Key

Key JavaScript Code

1. Direct Symbol:
document.querySelector('.key').textContent = '๐Ÿ”‘';
2. Unicode Escape for ๐Ÿ”‘:
document.querySelector('.key').textContent = '\u1F511';
Preview: ๐Ÿ”‘