Apostrophe

'

Shortcodes

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

Unicode
U+0027
Alt Code
39
HTML Code
'
HEX Code
'
CSS Code
\027
JS/JSON
\u0027
Unix/C/PHP/JAVA
0x27
URL-encode
%27
copied

Customize Apostrophe Symbol

Customize ' symbol as you like and download Apostrophe 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 type Apostrophe symbol ' ?

Using Apostrophe Alt Code:

You can type the Apostrophe symbol ' using your keyboard by using the Alt Code for Apostrophe. Before you begin, ensure that your Num Lock is turned on, and use the Numpad to type the code. Then, follow these simple steps:

  1. Hold down the Alt key on your keyboard.
  2. Type the number 39 using the Numpad.
  3. Release the Alt key.

This will make the ' appear on your screen.

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

Insert ' Apostrophe using HTML

1. Copy-paste Apostrophe directly:
<span>'</span>
2. HTML Decimal Code:
<span>&#39;</span>
3. Hexadecimal Code:
<span>&#x0027;</span>
Preview: '

Add Apostrophe symbol with CSS

.apostrophe::before {
    content: '\\027';
}
Preview: Apostrophe

Apostrophe JavaScript Code

1. Direct Symbol:
document.querySelector('.apostrophe').textContent = ''';
2. Unicode Escape for ':
document.querySelector('.apostrophe').textContent = '\u0027';
Preview: '