Banner Guide

GitHub Banner Size Guide (2026)

Everything you need to know about GitHub social preview dimensions, file formats, and best practices for repository banners in 2026.

4 min read  •  Last updated 2026

Recommended GitHub Banner Dimensions

GitHub uses a social preview image to represent your repository when it is shared on social media platforms. Getting the dimensions right ensures your banner displays clearly and professionally in link previews across Twitter, LinkedIn, Slack, and more.

Image TypeDimensionsAspect RatioMax SizeFormat
Social Preview1280 × 640 px2:15 MBPNG, JPG, GIF
How it works: GitHub uses social preview images when repos are shared on social media — this is the image that appears in link previews on Twitter, LinkedIn, Slack, and other platforms.

File Format Tips

Choosing the right file format makes a noticeable difference in how your GitHub banner looks:

Common GitHub Banner Mistakes

How Typography Studio Pro Helps

Smart Banner Hub's Typography Studio Pro makes creating perfect GitHub banners simple and effortless:

Banners for Other Platforms

Typography Studio Pro offers unified banner creation for all major platforms: