Resize any image to 1280×640 pixels (2:1 aspect ratio) in your browser — no upload, no login, no paywall. Pure white background by default, ready for Social Preview spec compliance.
Browser-side · your image never leaves your device
Unlimited
Drop an image here
or click to browse · JPEG / PNG / WebP · up to 50 MB
By uploading, you agree to our Terms of Service and Privacy Policy. Your images are processed locally in your browser and never leave your device.
💡 For best results, start with an image at least as wide as the target size. Upscaling small images can introduce blur.
Ready
GitHub social preview image size: the 2026 spec
Getting GitHub social preview image dimensions right matters for both reach and visual quality. This guide covers the official 1280×640 pixel specification, format requirements, and common pitfalls when preparing images for GitHub social preview.
Why 1280×640 pixels
The 1280×640 standard is GitHub social preview's recommended upload dimension. Files smaller than this are auto-upscaled and render blurry on high-DPI screens; files larger are downscaled by GitHub social preview's CDN. The aspect ratio is 2:1.
Specification breakdown
Size: 1280×640 px
Format: JPEG, PNG
Use case: Repository OG image, profile page banner
The "safe area" inside the frame
Crop the central content of your image to the central 70% horizontal, 80% vertical. GitHub social preview may crop or overlay UI elements near the edges, so critical content should stay well within the safe zone.
Common mistakes
Critical content at edges — clipped when shared on Twitter/LinkedIn
Frequently asked questions
How to set this? Repository → Settings → Social preview → Upload an image.
How imgsize.cc handles it
Drop your source image into the workbench above. The crop box defaults to the 2:1 aspect ratio that matches GitHub social preview's spec. Resize, crop, and download as a 1280×640 pixel PNG — all in your browser, no upload required.
Cookies, briefly.
We use cookies for two things: keeping the site working (your language preference) and suggesting the right one for your country. We don't sell your data. Choose what's comfortable. Read the cookie policy.
Cookie settings
Essential
Required for the site to work — language preference, basic state. Cannot be turned off.
Analytics
We use IP geolocation (ipwho.is / ipapi.co) to suggest your local language version, and may add privacy-respecting page-view analytics later. No personal identifiers, no cross-site tracking.
Marketing
We don't run ads or marketing pixels today. If we add any in the future, you'll be asked first.