Windows-1256 is a code page (character encoding) used under Microsoft Windows to write Arabic and other languages that use the Arabic script, such as Persian and Urdu. It is part of the Windows-125x family of single-byte, extended-ASCII code pages developed by Microsoft.
Technical characteristics
Windows-1256 is an 8-bit single-byte character encoding. It is neither compatible with ISO/IEC 8859-6 nor with the MacArabic encoding. The code page encodes every abstract single letter of the basic Arabic alphabet rather than the concrete visual forms (isolated, initial, medial, final, or ligatured letter shape variants); in other words, it encodes characters rather than glyphs. The Arabic letters in the C0–FF range are arranged in Arabic alphabetic order, with some Latin characters interspersed among them.
Notably, some Windows-1252 Latin characters used for French are included, reflecting the historic relevance of French in former French colonies in North Africa such as Morocco and Algeria. This design allowed French and Arabic text to be intermixed within a single Windows-1256 stream without requiring code-page switching, although uppercase letters with diacritics were not included.
Aliases and identifiers
The MIME/IANA name for the encoding is "windows-1256," with the alias "cp1256" (Code page 1256). IBM designates it as code page 1256 (CCSID 1256), with an euro-sign-extended variant (CCSID 5352) and a further extended variant (CCSID 9448) that adds letters used in modern Persian and Urdu. The encoding is standardized by the WHATWG Encoding Standard.
Character set
The original specification left nine byte values marked as "NOT USED" (hexadecimal 0x80, 0x8A, 0x8F, 0x98, 0x9A, 0x9F, 0xAA, 0xC0, and 0xFF). These bytes were later repurposed for the euro sign and for additional letters in the Perso-Arabic script used by Persian and Urdu.
Usage and decline
Windows-1256 was historically used to represent Arabic text in Windows-based systems and legacy web pages. However, Unicode—particularly the dominant UTF-8 encoding—is now preferred in modern applications and on the Internet. According to W3Techs data from October 2022, less than 0.03% of all web pages used Windows-1256. Although it remained the second-most-popular encoding for Arabic text, it was used for only about 1.6% of Arabic text on the web at that time. The encoding also does not provide complete coverage of the Arabic script, unlike Unicode's Arabic script block.
Languages supported
Windows-1256 supports Arabic, Persian, Urdu, English, and French (with the exception of capital letters with diacritics).