Using ASCII and ANSI Characters

by Allen Wyatt
(last updated May 22, 2021)

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

Solving Simultaneous Equations

One branch of mathematics allows you to work with what are called "simultaneous equations." Working with this type of ...

Discover More

Printing a Document's Mirror Image

If you need to print the mirror image (backwards) of a document, you may think you are out of luck in Word. There are ...

Discover More

Creating a Log/Log Chart

If you need to create a chart that uses logarithmic values on both axes, it can be confusing how to get what you want. ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (menu)

Moving Breaks Quickly

Breaks in a document can be easily moved from one place to another using familiar editing techniques. The trick is to ...

Discover More

Deleting a Page

Want to delete the current page? There is no automatic command to perform this task in Word, but you can create your own ...

Discover More

Differences between Deleting, Clearing, and Cutting

When getting rid of text from your document, Word allows you to delete, clear, or cut. Here are the differences between ...

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 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 five more than 0?

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.

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.