Arrow left
Back to product guides
Google Sheets Formulas

How to Insert an Image into a Cell in Google Sheets

In this article, you will learn how to add a picture in a cell by using the IMAGE function in Google Sheets.

How to add an image into a cell with the IMAGE formula in Google Sheets

To add an image to a cell in Google Sheets, you can use the IMAGE formula. The syntax for the IMAGE formula is as follows:

=IMAGE(url, [mode], [height], [width])

url is the URL of the image you want to insert. This can be a direct link to the image file, or a link to a page that contains the image. Note you should enclose the url with quotation marks to make it valid input.

mode (optional) specifies how the image should be displayed in the cell. The possible 

values are 1(the default), 2, 3, and 4.

1 resizes the image to fit inside the cell, maintaining the original aspect ratio.

2 stretches or compresses the image to fit inside the cell, ignoring the initial aspect ratio.

3 leaves the image at its original size, which may cause cropping.

4 allows the specification of a custom size.

Note that no mode causes the cell to be resized to fit the image.

height (optional) specifies the height of the image in pixels. To make this argument valid, the mode parameter should be set as 4.

width (optional) specifies the width of the image in pixels. Same as height parameter, to make this argument valid, the mode parameter should be set as 4.

Here is an example of how you could use the IMAGE formula to add an image to a cell:

=IMAGE("https://www.example.com/image.jpg")

This formula would insert the image at the specified URL into the cell. The height and width of the image would be automatically calculated based on the image's original aspect ratio.

You can also use the mode, height, and width arguments to customize how the image is displayed in the cell. For example, the following formula would insert the image and stretch it to fit the entire cell:

=IMAGE("https://www.example.com/image.jpg", 2, 100, 100)

The following picture shows what formulas with different mode parameters look like with our logo.

What the pictures pulled out by the IMAGE function look like in Google Sheets

How can I insert an image in a cell manually in Google Sheets

You can add a picture in a cell without any formula by following the steps below:

  1. Open the Google Sheets file in which you want to insert an image.
  2. Click on the cell in which you want to insert the image.
  3. Click on the "Insert" menu at the top of the screen and select "Image" from the dropdown menu.
  4. In the "Insert Image" dialog box that appears, select the image you want to insert from your computer or from a URL.
  5. Click "Select" to insert the image in the selected cell.
How to insert a picture into a cell from the menu bar in Google Sheets

What is the shortcut to insert a picture into a cell in Google Sheets?

Unfortunately, there is no built-in shortcut to insert a picture into a cell in Google Sheets. However, as described in the section above, you can use the IMAGE formula to add an image to a cell.

What are the other basic tips in Google Sheets?

If you don’t get the solution to your question in this article or you are interested in learning more basic tips in Google Sheets, you may find the answers in the following articles.

Move onto the articles below to learn how to use Google Sheets, such as signing in, renaming, saving and printing a file, setting up notifications, and changing themes.

Google Sheets Sign-in: Explained

How to Rename a Google Sheet File

How to Save Google Sheets in Google Drive

How to Set Up Notifications in Google Sheets

How to Set Print Area in Google Sheets

Change Theme in Google Sheets: Explained

Autofill Function in Google Sheets: Explained

Go to the following articles to learn basic operations, such as redo and undo, referencing a cell on another sheet in a formula, inserting a table, and putting an image into a cell.

Redo and Undo in Google Sheets: Explained

How to Reference Another Sheet in Google Sheets

How to Make a Table in Google Sheets

Check the following posts if you want to learn how to insert, modify, and remove comments and note or tag someone in your comment.

How to Add a Comment to a Cell in Google Sheets

How to Tag Someone in Google Sheets

Comment History in Google Sheets: Explained

How to Insert a Note in Google Sheets

How to See Edit History in Google Sheets

Read these articles to learn how to show formulas, missing toolbar, or formula bar in Google Sheets.

How to Show Formulas in Google Sheets

How to Show Formula Bar in Google Sheets

How to Show the Toolbar Missing in Google Sheets

Visit these articles to learn how to protect cells and view protected cells or ranges.

How to Lock Cells in Google Sheets

How to View Protected Ranges in Google Sheets

Analyze your live financial data in a snap

Are you learning this tip to visualize financial data, build a financial model, or conduct financial analysis? In that case, LiveFlow may help you automate manual workflows and update numbers in real-time. You can access various financial templates on our website, from the simple Income Statement to Multi-Currency Consolidated Financial Statement. You can also customize these templates as you want without breaking the automated data inflow.

To learn more about LiveFlow, book a demo.

Automate any custom financial dashboard in Google Sheets with LiveFlow

Learn how to do this step-by-step in the video below 👇

Do you need personal help?

Our team of real people are here to help you any time between 9am and 10pm GMT.
Check Icon
Email us at: founders@liveflow.io
Check Icon
Call us at +1 (415) 650-1711