GitHub Social Preview — 1280×640
When someone shares a link to your GitHub repository, the social preview image is the first thing people see. GitHub recommends 1280×640 pixels (2:1 ratio) for this card image. A well-framed preview makes your project look polished on Twitter, Slack, Discord, and anywhere else links unfurl. Use this tool to crop any image to the exact dimensions GitHub expects.
Crop your image
Target dimensions: 1280 × 640 px
Drop your image here, or
Why use this tool?
Open your image in the editor to begin. The crop overlay is locked to a 2:1 aspect ratio at 1280×640 pixels. Eight drag handles let you resize the selection, and you can reposition the overlay freely to frame the portion of the image you want. A live pixel readout tracks your selection as you adjust it. Export as PNG (the default), JPG, or WebP. For lossy formats, a quality slider lets you balance clarity against file size. The entire workflow runs locally in your browser using native Web APIs. Your images are never uploaded, and no data leaves your device.
Also try
Frequently asked questions
What size should a GitHub social preview image be?
GitHub recommends 1280×640 pixels with a 2:1 aspect ratio. Images smaller than 640×320 may not display correctly in link previews.
Is my file private and secure?
Completely. Your file is processed 100% inside your browser using the Web APIs built into your device. Nothing is uploaded to any server — imgic never sees, stores, or transmits your images. You can even use these tools offline once the page has loaded.
Where do I upload the social preview on GitHub?
Go to your repository’s Settings tab, scroll to the Social Preview section, and upload the image there. GitHub will use it whenever your repo link is shared.
Does the exported filename reflect the target size?
Yes. The downloaded file is named with the 1280×640 target dimensions so you can identify it at a glance in your file system.
Can I crop a screenshot of my project for this?
Absolutely. Screenshots, logos, diagrams, and photographs all work. The locked 2:1 frame helps you select the most compelling region of any source image.
Ready to upload an image.