40

How do you add a screenshot image to your Stack Overflow question?

0

1 Answer 1

60

In your toolbar when typing/editing a question you just click the button above (typical image-button with landscape in a frame), then simply drag to upload a picture, or paste the URL to one if you're hosting it elsewhere.

screenshot of editing toolbar

You can also manually type the following to embed an image:

[![image description][1]][1]

[1]: https://i.sstatic.net/f7zys.png

The syntax is called Markdown, which you can read about in the Help Center.

NOTE: While there are valid situations for adding a screenshot or other image to your question, you should not upload images of code, data, or error messages. These should instead be copied and pasted into your question as plain text. (Format the block as code by selecting it and clicking the { } button in the toolbar to ensure that it is readable.)

4
  • 9
    This also works then ![](https://i.sstatic.net/f7zys.png). Commented Apr 22, 2021 at 7:16
  • 6
    @Friedrich's comment is great, but note that adding 'alternative text' in [] is kind toward people who use assistive technology (or need translation). So if only you can always describe the photo in a few words, like this: ![description what is in the picture](https://i.sstatic.net/f7zys.png) Commented Jun 16, 2022 at 15:25
  • Just note that there must be a blank line between the markdown shown and other content Commented Dec 17, 2023 at 0:10
  • 2
    You don't have to search for and find that button. All you have to do is (when you are logged in) make sure the cursor is in the text field (where you write the question), copy the image (when making screenshot) and paste it Commented Jul 5, 2024 at 13:18

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.