Magnet

🧲

Shortcodes

Copy and paste codes for Magnet symbol 🧲 to use in your websites, apps, blogs, and more.

Unicode
U+1F9F2
HTML Code
🧲
HEX Code
🧲
CSS Code
\1F9F2
JS/JSON
\u1F9F2
Unix/C/PHP/JAVA
0x1F9F2
URL-encode
%F0%9F%A7%B2
copied

Customize Magnet Symbol

Customize 🧲 symbol as you like and download Magnet 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 Magnet symbol in HTML, CSS, and JS?

Insert 🧲 Magnet using HTML

1. Copy-paste Magnet directly:
<span>🧲</span>
2. HTML Decimal Code:
<span>&#129522;</span>
3. Hexadecimal Code:
<span>&#x1F9F2;</span>
Preview: 🧲

Add Magnet symbol with CSS

.magnet::before {
    content: '\\1F9F2';
}
Preview: Magnet

Magnet JavaScript Code

1. Direct Symbol:
document.querySelector('.magnet').textContent = '🧲';
2. Unicode Escape for 🧲:
document.querySelector('.magnet').textContent = '\u1F9F2';
Preview: 🧲