Using ASCII and ANSI Characters

Written by Allen Wyatt (last updated May 22, 2021)
This tip applies to Word 97, 2000, 2002, and 2003


2

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

Making Revisions

You've turned on Highlight Changes, but how do you know what has been changed? This tip explains how Excel displays those ...

Discover More

Changing Limited Relative References to Absolute

Do you need to change whether a particular reference in a formula uses a relative or absolute reference? If so, you may ...

Discover More

Starting Out Formulas

When you enter a formula from the keyboard, Excel only knows it is a formula if you start it with an equal sign. You can ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (menu)

Capitals After Colons

Do you want Word to always capitalize the first letter appearing after a colon? The program won't do it by default, but ...

Discover More

Selective Undo

Ever wonder why you can't undo just a single edit you made a few minutes earlier? The short answer is that it could make ...

Discover More

Adding Quotes

Adding quote marks is normally as simple as typing them from the keyboard. However, if you want to add quote marks around ...

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}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. 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 eight less than 8?

2021-05-22 23:21:46

Steve Wells

You may want to enter characters that display a four-character code in the Character Map applet, but it's not clear what to do with the code. For example, in Character Map, examine the Arial font and scroll approximately three-quarters of the way down. You can find fraction and other interesting characters. You may want to use a five-eighths fraction character. Click the five-eighths character, and at the bottom of the applet you see: U+215D: Vulgar Fraction Five Eighths. In Word, you could try holding down the Alt key, but how could you type 215D on the keypad. So what's going on? What do you do?

The U+215D shows that it's a Unicode character and reveals its Hexadecimal (base 16) value. The keypad technique works with the decimal (base 10) value. There are various calculators and even an Excel spreadsheet function to convert Hexadecimal to Decimal. If a spreadsheet cell contains =HEX2DEC(215D), it will display the decimal value 8541. In Word, hold down Alt and type 8541 on the keypad. When you release the Alt key, you get a five-eighths stacked fraction. Great!
But that seems like a lot of work. If you use a lot of such characters frequently, you can make a cheat-sheet spreadsheet that shows the decimal values of the ones you use frequently. But for the one-off characters, what else can you do?

In your Word document, you can type the Hexadecimal value shown in Character Map. Type 215D. Select the 215D that you just typed. Press Alt+X. The Hex code turns into a selected five-eighths. Press Alt+X again and the selected character toggles back to its Hex value. You can use the Alt+X toggle on a selected character in a document to discover its code. Maybe you'd like to find and use a related character.

Here's another method to get the character into Word. In Character Map, click that five-eighths character. Click the Select button. (You can click several characters and Select for each to get a string of them in the Characters to Copy box.) Use your pointing device to select the character (or string of them) in the box. Click the Copy button (same as pressing Ctrl+C). Alt+Tab to your Word document, and Ctrl+V paste them into Word.


2021-05-22 18:52:00

Steve Wells

You may want to enter characters that display a four-character code in the Character Map applet, but it's not clear what to do with the code. For example, in Character Map, examine the Arial font and scroll approximately three-quarters of the way down. You can find fraction and other interesting characters. You may want to use a five-eighths fraction character. Click the five-eighths character, and at the bottom of the applet you see: U+215D: Vulgar Fraction Five Eighths. In Word, you could try holding down the Alt key, but how could you type 215D on the keypad. So what's going on? What do you do?

The U+215D shows that it's a Unicode character and reveals its Hexadecimal (base 16) value. The keypad technique works with the decimal (base 10) value. There are various calculators and even an Excel spreadsheet function to convert Hexadecimal to Decimal. If a spreadsheet cell contains =HEX2DEC(215D), it will display the decimal value 8541. In Word, hold down Alt and type 8541 on the keypad. When you release the Alt key, you get a five-eighths stacked fraction. Great!
But that seems like a lot of work. If you use a lot of such characters frequently, you can make a cheat-sheet spreadsheet that shows the decimal values of the ones you use frequently. But for the one-off characters, what else can you do?

In your Word document, you can type the Hexadecimal value shown in Character Map. Type 215D. Select the 215D that you just typed. Press Alt+X. The Hex code turns into a selected five-eighths. Press Alt+X again and the selected character toggles back to its Hex value. You can use the Alt+X toggle on a selected character in a document to discover its code. Maybe you'd like to find and use a related character.

Here's another method to get the character into Word. In Character Map, click that five-eighths character. Click the Select button. (You can click several characters and Select for each to get a string of them in the Characters to Copy box.) Use your pointing device to select the character (or string of them) in the box. Click the Copy button (same as pressing Ctrl+C). Alt+Tab to your Word document, and Ctrl+V paste them into Word.


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.

Videos
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.