platform · image
GitHub Avatar Size
GitHub profile avatar and repository social preview dimensions. 420×420 avatar, 1280×640 repo image.
Updated 2026-08-04
Dimensions & limits
| 资源 | 尺寸 | 最大文件 | 格式 |
|---|---|---|---|
| avatar | 420×420 | 1024 KB | jpg, png, gif |
| social_preview | 1280×640 | 2048 KB | jpg, png |
官方来源 · 已验证 2026-05-21
Square avatar; GIF allowed for profile.
Preset: optimized export
常见问题解答
- What size is a GitHub avatar?
- 420×420 pixels displayed; upload square source.
- Repository social preview image?
- 1280×640 px in repo Settings → Social preview.
- GIF avatars?
- GitHub allows animated GIF profile images within size limits.