HTML ANSI (Windows-1252) Reference

ANSI (Windows-1252)

ANSI was the default character set in Windows up to Windows 95.

ANSI is also called Windows-1252.

Important Note

ANSI and ISO-8859-1 are very similar. They only differ in 32 characters.

In ANSI, the characters from 128 to 159 are used for some useful characters such as the Euro symbol.

In ISO-8859-1 these characters are mapped to control characters which are useless in HTML.

Many web developers declare ISO-8859-1 and use these 32 values as if they were using Windows-1252.

Because of this common misunderstanding, browsers will change to Windows-1252 when ISO-8859-1 is declared. This is done for any DOCTYPE: HTML4, HTML5, and XHTML.


The first part of ANSI (entity numbers from 0-127) is the original ASCII character-set. It contains numbers, upper and lowercase English letters, and some special characters.

For a closer look, please study our Complete ASCII Reference.

The ANSI Character Set

Character Number Entity Name Description  0 - 31 Control characters (se below)  32 space !33 exclamation mark "34&quot;quotation mark #35 number sign $36 dollar sign %37 percent sign &38&amp;ampersand '39 apostrophe (40 left parenthesis )41 right parenthesis *42 asterisk +43 plus sign ,44 comma -45 hyphen-minus .46 full stop /47 solidus 048 digit zero 149 digit one 250 digit two 351 digit three 452 digit four 553 digit five 654 digit six 755 digit seven 856 digit eight 957 digit nine :58 colon ;59 semicolon <60&lt;less-than sign =61 equals sign >62&gt;greater-than sign ?63 question mark @64 commercial at A65 Latin capital letter A B66 Latin capital letter B C67 Latin capital letter C D68 Latin capital letter D E69 Latin capital letter E F70 Latin capital letter F G71 Latin capital letter G H72 Latin capital letter H I73 Latin capital letter I J74 Latin capital letter J K75 Latin capital letter K L76 Latin capital letter L M77 Latin capital letter M N78 Latin capital letter N O79 Latin capital letter O P80 Latin capital letter P Q81 Latin capital letter Q R82 Latin capital letter R S83 Latin capital letter S T84 Latin capital letter T U85 Latin capital letter U V86 Latin capital letter V W87 Latin capital letter W X88 Latin capital letter X Y89 Latin capital letter Y Z90 Latin capital letter Z [91 left square bracket \92 reverse solidus ]93 right square bracket ^94 circumflex accent _95 low line `96 grave accent a97 Latin small letter a b98 Latin small letter b c99 Latin small letter c d100 Latin small letter d e101 Latin small letter e f102 Latin small letter f g103 Latin small letter g h104 Latin small letter h i105 Latin small letter i j106 Latin small letter j k107 Latin small letter k l108 Latin small letter l m109 Latin small letter m n110 Latin small letter n o111 Latin small letter o p112 Latin small letter p q113 Latin small letter q r114 Latin small letter r s115 Latin small letter s t116 Latin small letter t u117 Latin small letter u v118 Latin small letter v w119 Latin small letter w x120 Latin small letter x y121 Latin small letter y z122 Latin small letter z {123 left curly bracket |124 vertical line }125 right curly bracket ~126 tilde  127 Control character (Se below) €128&euro;euro sign  129 NOT USED ‚130&sbquo;single low-9 quotation mark ƒ131&fnof;Latin small letter f with hook „132&bdquo;double low-9 quotation mark …133&hellip;horizontal ellipsis †134&dagger;dagger ‡135&Dagger;double dagger ˆ136&circ;modifier letter circumflex accent ‰137&permil;per mille sign Š138&Scaron;Latin capital letter S with caron ‹139&lsaquo;single left-pointing angle quotation mark Œ140&OElig;Latin capital ligature OE  141 NOT USED Ž142&Zcaron;Latin capital letter Z with caron  143 NOT USED  144 NOT USED ‘145&lsquo;left single quotation mark ’146&rsquo;right single quotation mark “147&ldquo;left double quotation mark ”148&rdquo;right double quotation mark •149&bull;bullet –150&ndash;en dash —151&mdash;em dash ˜152&tilde;small tilde ™153&trade;trade mark sign š154&scaron;Latin small letter s with caron ›155&rsaquo;single right-pointing angle quotation mark œ156&oelig;Latin small ligature oe  157 NOT USED ž158&zcaron;Latin small letter z with caron Ÿ159&Yuml;Latin capital letter Y with diaeresis  160&nbsp;no-break space ¡161&iexcl;inverted exclamation mark ¢162&cent;cent sign £163&pound;pound sign ¤164&curren;currency sign ¥165&yen;yen sign ¦166&brvbar;broken bar §167&sect;section sign ¨168&uml;diaeresis ©169&copy;copyright sign ª170&ordf;feminine ordinal indicator «171&laquo;left-pointing double angle quotation mark ¬172&not;not sign ­173&shy;soft hyphen ®174&reg;registered sign ¯175&macr;macron °176&deg;degree sign ±177&plusmn;plus-minus sign ²178&sup2;superscript two ³179&sup3;superscript three ´180&acute;acute accent µ181&micro;micro sign ¶182&para;pilcrow sign ·183&middot;middle dot ¸184&cedil;cedilla ¹185&sup1;superscript one º186&ordm;masculine ordinal indicator »187&raquo;right-pointing double angle quotation mark ¼188&frac14;vulgar fraction one quarter ½189&frac12;vulgar fraction one half ¾190&frac34;vulgar fraction three quarters ¿191&iquest;inverted question mark À192&Agrave;Latin capital letter A with grave Á193&Aacute;Latin capital letter A with acute Â194&Acirc;Latin capital letter A with circumflex Ã195&Atilde;Latin capital letter A with tilde Ä196&Auml;Latin capital letter A with diaeresis Å197&Aring;Latin capital letter A with ring above Æ198&AElig;Latin capital letter AE Ç199&Ccedil;Latin capital letter C with cedilla È200&Egrave;Latin capital letter E with grave É201&Eacute;Latin capital letter E with acute Ê202&Ecirc;Latin capital letter E with circumflex Ë203&Euml;Latin capital letter E with diaeresis Ì204&Igrave;Latin capital letter I with grave Í205&Iacute;Latin capital letter I with acute Î206&Icirc;Latin capital letter I with circumflex Ï207&Iuml;Latin capital letter I with diaeresis Ð208&ETH;Latin capital letter Eth Ñ209&Ntilde;Latin capital letter N with tilde Ò210&Ograve;Latin capital letter O with grave Ó211&Oacute;Latin capital letter O with acute Ô212&Ocirc;Latin capital letter O with circumflex Õ213&Otilde;Latin capital letter O with tilde Ö214&Ouml;Latin capital letter O with diaeresis ×215&times;multiplication sign Ø216&Oslash;Latin capital letter O with stroke Ù217&Ugrave;Latin capital letter U with grave Ú218&Uacute;Latin capital letter U with acute Û219&Ucirc;Latin capital letter U with circumflex Ü220&Uuml;Latin capital letter U with diaeresis Ý221&Yacute;Latin capital letter Y with acute Þ222&THORN;Latin capital letter Thorn ß223&szlig;Latin small letter sharp s à224&agrave;Latin small letter a with grave á225&aacute;Latin small letter a with acute â226&acirc;Latin small letter a with circumflex ã227&atilde;Latin small letter a with tilde ä228&auml;Latin small letter a with diaeresis å229&aring;Latin small letter a with ring above æ230&aelig;Latin small letter ae ç231&ccedil;Latin small letter c with cedilla è232&egrave;Latin small letter e with grave é233&eacute;Latin small letter e with acute ê234&ecirc;Latin small letter e with circumflex ë235&euml;Latin small letter e with diaeresis ì236&igrave;Latin small letter i with grave í237&iacute;Latin small letter i with acute î238&icirc;Latin small letter i with circumflex ï239&iuml;Latin small letter i with diaeresis ð240&eth;Latin small letter eth ñ241&ntilde;Latin small letter n with tilde ò242&ograve;Latin small letter o with grave ó243&oacute;Latin small letter o with acute ô244&ocirc;Latin small letter o with circumflex õ245&otilde;Latin small letter o with tilde ö246&ouml;Latin small letter o with diaeresis ÷247&divide;division sign ø248&oslash;Latin small letter o with stroke ù249&ugrave;Latin small letter u with grave ú250&uacute;Latin small letter u with acute û251&ucirc;Latin small letter with circumflex ü252&uuml;Latin small letter u with diaeresis ý253&yacute;Latin small letter y with acute þ254&thorn;Latin small letter thorn ÿ255&yuml;Latin small letter y with diaeresis

ANSI Control Characters

The ANSI control characters (range 00-31, plus 127) were designed to control hardware devices.

Control characters (except horizontal tab, line feed, and carriage return) have nothing to do inside an HTML document.

 Char Number Description
NUL 00 null character
SOH 01 start of header
STX 02 start of text
ETX 03 end of text
EOT 04 end of transmission
ENQ 05 enquiry
ACK 06 acknowledge
BEL 07 bell (ring)
BS 08 backspace
HT 09 horizontal tab
LF 10 line feed
VT 11 vertical tab
FF 12 form feed
CR 13 carriage return
SO 14 shift out
SI 15 shift in
DLE 16 data link escape
DC1 17 device control 1
DC2 18 device control 2
DC3 19 device control 3
DC4 20 device control 4
NAK 21 negative acknowledge
SYN 22 synchronize
ETB 23 end transmission block
CAN 24 cancel
EM 25 end of medium
SUB 26 substitute
ESC 27 escape
FS 28 file separator
GS 29 group separator
RS 30 record separator
US 31 unit separator
DEL 127 delete (rubout)