Microsoft Word does not use a single “picture code” to insert every kind of image. If you mean a code that places a picture from a file, Word’s INCLUDEPICTURE field is the main built-in option; if you mean an Alt code, those enter characters and symbols, not photographs or other image files.
What “picture codes” can mean in Word
The phrase can refer to several different things, so the right answer depends on what you are trying to do. A Word field code is an instruction that Word can evaluate, an Alt code or Unicode value represents a text character, and a picture itself is an image file such as a JPEG or PNG. These are related only in the broad sense that they can all appear in a document.
For most people asking for a picture code, the useful distinction is:
- Insert a picture file: use Word’s Insert Picture command, or use an
INCLUDEPICTUREfield when a field-based workflow is appropriate. - Enter a symbol or emoji: use the Symbol menu, the emoji picker, or a character’s Unicode value. That inserts a character, not an independent image.
- Display field instructions instead of a result: toggle field-code display. This changes what you see for fields; it does not create a picture.
The INCLUDEPICTURE field
INCLUDEPICTURE is a Word field that tells the application to show an image from a specified location. A basic example looks like this:
{ INCLUDEPICTURE "C:\\Users\\Jordan\\Pictures\\chart.png" }
The braces in that example represent actual field braces, not ordinary typed punctuation. In Word for Windows, press Ctrl+F9 to insert a pair of field braces, then type the field name and path inside them. Replace the sample path with the full path to your own image. The file must be accessible to Word when the field is evaluated.
To see the image result, right-click the field and choose Update Field, or select it and press F9. If Word shows the instruction rather than the image, toggle field-code display with Alt+F9 on Windows, or right-click the field and switch the display option for that field. Keyboard shortcuts can vary by platform and keyboard settings, so the context menu is a useful alternative.
Using a field step by step
- Save the image somewhere with a stable file path, and note the complete path and file extension.
- Click where the picture should appear in the document.
- Insert field braces with Ctrl+F9 on Windows. Do not type the braces yourself: Word needs to recognize them as a field.
- Inside the braces, enter
INCLUDEPICTURE, a space, and the image path in quotation marks. - Right-click the field and select Update Field, or select it and press F9.
- Save the document and test it again after moving or reopening the file.
For instance, a field might refer to D:\Projects\Report\logo.png. If the file is renamed, moved, or unavailable on another computer, the field may no longer be able to retrieve it. A path on one person’s desktop is therefore usually a poor choice for a document that will be shared.
Linked pictures and embedded pictures
A key decision is whether the image should travel inside the document or remain connected to a separate file. An embedded picture is stored as part of the Word document. It generally continues to appear when the document is emailed or moved, but it can increase the document’s file size. A linked picture points to an image stored elsewhere, which can keep the document smaller and make it possible for updates to the source image to appear in the document.
The \d switch is used with INCLUDEPICTURE to reduce document size by not storing the graphic data with the document. For example:
{ INCLUDEPICTURE "C:\\Users\\Jordan\\Pictures\\chart.png" \d }
A linked field has a practical drawback: Word needs to find the original image to update or display it reliably. A path that works only on your computer may fail for a colleague. For a document that must be portable, inserting the picture through Insert > Pictures and embedding it is usually simpler. For a recurring report where images are deliberately maintained in a shared location, a link may be useful, provided permissions and paths are managed.
Why an Alt code is not a picture code
Alt codes are a way to enter certain characters using the numeric keypad in Windows. They can produce text symbols, depending on the code, keyboard, application, and character encoding. They cannot convert a filename into a photograph or insert a full picture file. Similarly, typing a Unicode value into a document can represent a character such as a symbol or emoji, but the visual design may depend on the font and software being used.
If you want a small decorative icon, an emoji or symbol may be enough, but it is not a dependable substitute for a logo, diagram, screenshot, or product photo. For those, use an image file and Word’s picture tools. This also makes it easier to resize, position, add alternative text, and control how the picture interacts with surrounding text.
The ordinary way to insert a picture
You do not need a field code for most documents. In Word, place the cursor where the image belongs, choose Insert > Pictures, and select a source such as your device. Exact menu labels can differ between Word versions and platforms. After inserting the image, use the picture-formatting options to crop it, resize it, add a border, or change text wrapping.
This method is usually the best choice when you want a picture to remain in a report, letter, presentation handout, or other file even if the original image is later moved. It is also easier for most users than editing field instructions. Use INCLUDEPICTURE when you specifically need a field that retrieves an image from a known path, not simply because you want to put a picture on a page.
Common picture-code problems
If a field does not show the expected image, check the field structure and the file location before rebuilding the document. Common causes include:
- Typed braces: braces typed from the keyboard may look correct but are not field delimiters. Reinsert them using Ctrl+F9 on Windows.
- Incorrect path or filename: check spelling, folders, spaces, and the extension. The quoted path must lead to the actual file.
- Field not updated: right-click the field and choose Update Field, or select it and press F9.
- Image moved after insertion: restore the image to the referenced location or update the field with its new path.
- Field-code view is on: Word may be showing the instruction instead of the result. Toggle the field display or use the right-click display option.
- Document opened on another computer: that computer may not have access to a local drive, network folder, or permission-protected image.
If the field is correct but updating is inconvenient, replacing it with an embedded picture may be the more reliable fix. If the field is part of a larger automated workflow, test it with the same Word version, file locations, and sharing setup that recipients will use.
Sharing, layout, and accessibility
Picture fields do not remove the usual considerations for document layout. After an image appears, check its size, position, and text wrapping; a picture set to move with text can behave differently from one positioned independently. A large image can also make a document slow to open or email, while a linked image can go missing when its source path is unavailable.
For readers using assistive technology, provide alternative text for meaningful images. Alternative text describes the image’s purpose or important information; it is not the same as a filename or field code. A decorative image may not need a lengthy description, while a chart or instructional screenshot may need a concise explanation of the information it conveys. Use Word’s picture accessibility options to set alt text, and check the document with Word’s accessibility tools when the file will be distributed.
Before sharing, reopen the saved document and confirm that pictures display as intended. If it relies on links, test those links from the recipient’s expected environment. If recipients should not need access to separate image files, embed the pictures or use a sharing method that keeps the document and its linked assets together.
Frequently Asked Questions
What is the code to insert a picture in MS Word?
The field code is INCLUDEPICTURE, followed by the image path in quotation marks, inside Word field braces. For example: { INCLUDEPICTURE "C:\\Images\\photo.jpg" }. Create the braces with Word’s field command, then update the field. For ordinary use, Insert > Pictures is easier.
Can I type picture field braces myself?
No. To create a working Word field, use the field-insertion shortcut, such as Ctrl+F9 in Word for Windows. Keyboard-typed braces are ordinary characters and will not act as field delimiters.
Is there an Alt code for a photo in Word?
No. Alt codes enter characters or symbols; they do not insert image files. Use Word’s picture-insertion command or an INCLUDEPICTURE field to place a photo.
Why does Word show the INCLUDEPICTURE code instead of the image?
The field may not have been updated, or Word may be set to display field instructions. Update the field and switch to displaying field results. Also verify that the path points to an image Word can access.
Will an INCLUDEPICTURE image work after I email the document?
It depends on how the image is stored and whether the recipient can access its location. A linked field may fail if its source path is unavailable. Embedding the picture is generally safer when the image must travel with the document.
Can I use a picture code to insert an emoji?
You can insert an emoji as a character using Word’s symbol or emoji options, but that is different from inserting an image file. Its appearance can vary with the font, operating system, and application used to open the document.