Using ASCII and ANSI Characters

by Allen Wyatt
(last updated May 31, 2013)

5

Word allows you to add just about any character you can think of to your document. You add most characters by using the keyboard or by choosing Symbol from the Insert menu or, in Word 2007, choosing Symbol from the Symbols group on the Insert tab of the ribbon. Regardless of how you enter a character, Word tracks each one internally using a special numeric code. This code is necessary because computers can only understand numbers, not actual alphabetic characters. This numeric code is called either the ASCII or ANSI code.

In small computers, the code most often used is called ASCII, which is an acronym for American Standard Code for Information Interchange. It is a code comprised of 128 symbols assigned to the values 0 through 127. For instance, the letter A is represented in the computer by the number 65.

If you know the ASCII code for a particular character, and you want to enter it into your document, you can do so by holding down the Alt key and pressing the three-digit code on the numeric keypad. For instance, the ASCII code for an uppercase A is 65. You could enter this character by holding down the Alt key and pressing 065 on the numeric keypad. (Remember, you need to use a three-digit code.) Word responds by displaying the character on your screen.

A variation on the ASCII code is referred to as the ANSI code. (ANSI is an acronym for the American National Standards Institute.) The ANSI code can be considered a superset of ASCII, because it can represent many more characters than can be represented with the ASCII code. Remember that plain ASCII can represent only 128 characters. From a technical standpoint, this is because each character is represented using a single byte of data storage. ANSI, on the other hand, uses two bytes for storing each character, and can therefore be used to represent approximately 65,000 characters. The added flexibility provided by the ANSI code is necessary in today's international market for software.

ANSI characters are entered in your document in a similar fashion to ASCII codes. You hold down the Alt key, but instead use a four-digit code. For instance, if you wanted to insert the symbol for the British pound, you would hold down the Alt key and press 0163 (the four-digit code) on the numeric keypad. Word responds by placing the character in your document.

If you need to know more about either the ASCII or ANSI codes, any good programmer's reference will provide the information you need.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1359) applies to Microsoft Word 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Understanding the Document Map

The Document Map is a handy way to view the overall organization of your document as you are working with it. It is like ...

Discover More

Changing Page Number Format

Need your page numbers to not appear as regular Arabic numerals? Here's a way to get them to appear in a different ...

Discover More

Specifying a Paper Tray in a Macro

If you are using a macro to create your printed Excel output, you may need a way to specify that paper should come from a ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (menu)

Quickly Moving Text with the Mouse

Drag-and-drop editing is a handy feature when you love to use the mouse. There are two ways you can move text using the ...

Discover More

Line Breaks After a Slash

Some writers use the slash to combine words and as shorthand to signify "or" or "and." This, of course, makes for some very ...

Discover More

Controlling Overtype Mode

Some people like to have Word replace previous information as they type; this is called "overtype mode." You can control ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 4?

2016-03-24 01:59:40

winston

"ANSI" does not use two bytes for storing each character. It uses one byte (0..255). See https://en.wikipedia.org/wiki/Code_page#Windows_.28ANSI.29_code_pages for "ANSI" Codepages.

7Bit-ASCII uses 7 Bit (0..127). 8Bit-ASCII uses 1 Byte (0..255).
Unicode uses up to 4 Bytes.

It is possible to input Unicode characters via ALT-Code. See https://en.wikipedia.org/wiki/Alt_code


2015-09-30 13:48:47

Kari

I want to try pressing alt 065 on a MAC in Microsoft Word. The alt key is a bit different to use. It's not working. Any suggestions?


2013-04-11 10:55:05

siraj

interesting & very informative for those who want to know how to type ANSI & ASCII charecters,


2013-03-03 17:02:13

Brian McCabe

A very useful website.


2011-12-07 01:20:33

Rameshkumar

Excellent tips. Thank you.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.