Resize an Image for GitHub
Profile avatar and repo social preview: the right GitHub sizes so your profile and shared links look professional.
GitHub uses a 460×460px avatar (displayed smaller, so keep it simple) and a 1280×640px social preview image for repositories: the picture shown when a repo link is shared. Crop to a square for the avatar and 2:1 for the social preview, then resize. Our tools do it in your browser.
| Profile avatar | 460 × 460 px (square, displays small) |
|---|---|
| Repo social preview | 1280 × 640 px (2:1, min 640×320) |
| Format | PNG or JPG, under 1 MB (social preview) |
4 tools for this
Free, private and in your browser. No sign-up, no watermark.
Image Resizer
Resize any image to exact pixel dimensions with an optional aspect-ratio lock and ready-made social presets, free and fully in your browser.
Crop Image
Cut an image down to the exact part you want. Drag a crop box, snap to a ratio like 1:1 or 16:9, and export the trimmed area: free, private, in your browser.
Image Compressor
Shrink JPG, PNG and WebP images without a visible quality drop. Set the quality yourself, or compress to an exact target size like 100 KB. Free, entirely in your browser.
PNG to JPG
Convert PNG images to JPG in your browser: pick a background color for transparent areas, set the quality, and download a much smaller file.
How to do it
- 1
Pick what you're setting
A profile avatar (square) or a repository social preview (2:1).
- 2
Crop to the ratio
1:1 for the avatar, 2:1 for the social preview, with Crop Image.
- 3
Resize to the pixels
460×460 for the avatar, 1280×640 for the social preview, in Image Resizer.
- 4
Compress and upload
Keep the social preview under ~1MB with Image Compressor.
- The social preview (1280×640) is what shows when someone shares your repo on social or chat. Make it clear and branded.
- Avatars display small. A simple mark or clear photo reads best.
- Set a social preview on important repos so links don't share as a blank card.
Frequently asked questions
Problems we solve
Resize for other platforms
Keep exploring
Problems we solve
Definitions
From the blog
Common tasks
Start with Image Resizer
Free, private and instant: everything runs in your browser.