The quick answer
To add a GIF to a GitHub comment, place the cursor in the comment box, paste the copied GIF or drag the saved file into the box, and wait for GitHub to insert the uploaded file. Preview the comment, then submit it after the animation appears.
GitHub's documented image and GIF limit is 10 MB. Files uploaded to a public repository are accessible without authentication, so remove private information before attaching the capture.
Check your GIF against GitHub’s size limit
Choose a GIF below to see whether it is under GitHub’s documented 10 MB limit. The check happens on your device, so the file never leaves your browser.
What to do when a GIF is too large for GitHub
A GIF stores a sequence of image frames. A larger capture area, longer duration, higher frame rate, or more changing pixels can push the file past 10 MB even when the action feels short.
| Change | Why it helps | Keep this |
|---|---|---|
| Capture a smaller area | Fewer pixels are stored in every frame | Enough interface context to identify the control and result |
| Stop sooner | Fewer frames need to be encoded | A brief pause on the final state |
| Lower the frame rate | Menus, forms, and settings often remain understandable with fewer frames | Smooth enough motion to follow the pointer and state change |
| Switch to MP4 | H.264 is usually a better fit for longer motion | Use GIF when automatic looping is the point |
Record a useful GIF with GifJot
- Start one step before the bug
Put the app in a clean starting state so the viewer can see what triggers the problem.
- Select only the relevant area
Press Option-Command-G and draw a tight box around the control, message, or panel that changes.
- Perform the action once
Record the shortest path to the failure, pause on the incorrect result, and stop.
- Copy the finished GIF
Use GifJot's Copy action so the capture is ready to paste into GitHub.
Attach the GIF to the issue
- Open the issue form or a comment
Create a new issue, edit its description, or place the cursor in an existing issue comment.
- Add the GIF
Paste the copied GIF or drag the saved file into the text box. GitHub uploads it and inserts a link into the Markdown.
- Preview before submitting
Confirm that the animation shows the intended area and does not reveal names, email addresses, tokens, or customer data.
Copy this GitHub bug report template
## What happened
Describe the problem in one or two sentences.
## Steps to reproduce
1.
2.
3.
## Expected result
Describe what should have happened.
## Actual result
Describe what happened instead.
## Environment
- App version:
- macOS version:
## GIF
Drag or paste the GIF here.Keep the attachment small and safe
- Capture a smaller region instead of shrinking an entire desktop recording.
- Show one problem per GIF and stop as soon as the result appears.
- Use a PNG when a single state explains the bug.
- Use an H.264 MP4 when the motion is longer or a GIF would exceed the image limit.
- Use test data and close unrelated windows before recording.
- Treat a public-repository attachment as public, even though GifJot created the file locally.
See the finished result

Choose the next GitHub guide
- Add an MP4 to a GitHub issue or commentUse H.264 for a longer capture and check the video limit for the repository's plan.
- Record a clear bug report on MacPair the GIF with exact reproduction steps, expected behavior, and the actual result.
- Record your Mac screen directly as a GIFCapture only the relevant area and avoid a video-conversion step.
Sources
- GitHub: Attach filesGitHub documents GIF support, attachment methods, file limits, and visibility.
- GitHub: Issues quickstartGitHub recommends clear reproduction steps, expected results, and actual results.
- GifJot on GitHubSee GifJot's current capture and copy workflow.