Updated 2026-11-25
All the codes for ÷
The division sign is Unicode U+00F7 (decimal 247). Every one of these produces ÷:
| Context | Code | |
|---|---|---|
| HTML named entity | ÷ (HTML5 also accepts ÷) | |
| HTML decimal | ÷ | |
| HTML hex | ÷ | |
CSS content | "\00F7" (or "\F7 " with a space) | |
| JavaScript / JSON / Java / C# | "\u00F7" | |
| JavaScript (ES2015+) | "\u{F7}" · String.fromCodePoint(247) | |
| Python 3 | "\u00f7" · "\N{DIVISION SIGN}" · chr(247) | |
| URL encoding | %C3%B7 | |
| UTF-8 bytes | C3 B7 | |
| UTF-16 | 00F7 | |
| The character itself | ÷ (fine in any UTF-8 page) |
If your page declares <meta charset="utf-8"> (every modern page should), you can simply type or paste ÷ into the HTML. Entities are only needed when your editor or pipeline cannot handle non-ASCII characters.
Codes for related division symbols
| Symbol | Name | Unicode | Named entity | Numeric | CSS |
|---|---|---|---|---|---|
| ÷ | Division sign | U+00F7 | ÷ | ÷ | \00F7 |
| ∕ | Division slash | U+2215 | — | ∕ | \2215 |
| ⁄ | Fraction slash | U+2044 | ⁄ | ⁄ | \2044 |
| / | Solidus | U+002F | / | / | \2F |
| ⟌ | Long division | U+27CC | — | ⟌ | \27CC |
| ➗ | Heavy division sign | U+2797 | — | ➗ | \2797 |
| ∶ | Ratio | U+2236 | ∶ | ∶ | \2236 |
| ∣ | Divides | U+2223 | ∣ | ∣ | \2223 |
| ∤ | Does not divide | U+2224 | ∤ | ∤ | \2224 |
| ⋇ | Division times | U+22C7 | ⋇ | ⋇ | \22C7 |
| ⊘ | Circled division slash | U+2298 | ⊘ | ⊘ | \2298 |
| ⨸ | Circled division sign | U+2A38 | ⨸ | ⨸ | \2A38 |
Entity names are from the HTML standard's named character list. What each symbol means is explained on the division symbol page and in ÷ vs / vs ∕ vs ⁄.
Examples
HTML
<p>84 ÷ 4 = 21</p> <p>84 ÷ 4 = 21</p>
CSS (icon or label before an element)
.divide::before {
content: "\00F7";
}
In CSS, a hex escape ends at the first non-hex character, or after six digits; writing all four digits (\00F7) or adding a trailing space avoids eating the next character.
JavaScript
const sign = "\u00F7"; // "÷"
el.textContent = `84 ${sign} 4 = ${84 / 4}`; // "84 ÷ 4 = 21"
"÷".codePointAt(0); // 247
Note that the calculation still uses /: ÷ is only for display. Division operators in JavaScript, Python and other languages are compared on division in programming.
MathML
<math><mn>84</mn><mo>÷</mo><mn>4</mn></math>
Common mistakes
- Missing semicolon:
÷without;happens to work in browsers for legacy reasons, but always close entities. - Double escaping:
&divide;shows the literal text "÷" instead of ÷. This often happens when a CMS escapes an entity a second time. - Wrong CSS escape:
content: "÷"does not work; CSS uses backslash escapes, not HTML entities. - Using ÷ as an operator:
84 ÷ 4in JavaScript is a syntax error.
Frequently asked questions
What is the HTML code for the division symbol?
Use ÷ or ÷ (hex ÷). All three display ÷.
What is the CSS code for ÷?
Use content: "\00F7"; in a ::before or ::after rule.
How do I write ÷ in JavaScript?
Use the escape "\u00F7" or String.fromCodePoint(247), or type ÷ directly in a UTF-8 file. For the calculation itself use /.
Is there an HTML entity for the long division symbol?
No named entity exists for ⟌. Use the numeric reference ⟌ or ⟌.
What is the HTML entity for "divides" ∣?
∣ (or ∣) gives ∣, and ∤ gives ∤ (does not divide).