GitHub Social Preview Resizer

Size your repository's social preview image to GitHub's recommended 1280×640.

Drop an image here, or click to upload

JPG, PNG, or WebP — processed privately in your browser, never uploaded.

100% free, no sign-up Processed in your browser Nothing uploaded to a server

How to github social preview resizer

  1. 1Upload the image you want to use on GitHub.
  2. 2Choose a preset size that matches where you'll post it.
  3. 3Use Cover to fill the frame (center crop) or Contain to show the whole image with padding.
  4. 4Download your correctly sized image, ready to upload.

GitHub looks best when your image matches its recommended dimensions. Uploading a wrongly sized image often means GitHub crops or compresses it, which can cut off important details. Sizing it correctly first keeps everything sharp and framed the way you intended.

The presets here cover the current GitHub sizes, starting with the social preview (1280×640 pixels). Everything runs locally in your browser using the HTML canvas — your image is never uploaded to a server, so it stays completely private and there is no waiting for uploads.

When a photo's shape doesn't match the target size, Cover will crop part of it to fill the frame. If you want to keep the whole scene and let AI fill the extra space instead of cropping, try our AI outpainting resizer.

Need to change the shape, not just the size?

When you resize to a different aspect ratio, you normally have to crop or add bars. Our AI outpainting tool generates new matching background so your photo fills any canvas without losing a thing. Sign in for 3 free AI generations.

Frequently asked questions

What image size does GitHub use?

The recommended size is the social preview — 1280×640 pixels. This tool has it (and other common GitHub sizes) as one-click presets.

Does it crop my image?

Only if you choose Cover, which center-crops to fill the frame exactly. Choose Contain to keep the entire image visible with padding around it.

Is this GitHub resizer really free?

Yes — it is 100% free with no account or sign-up required. It runs in your browser, so there are no usage limits and nothing is uploaded to us.