Social preview
GitHub social preview generator
The image shown when someone shares your repository on X, LinkedIn, Slack or Discord. Most repos don't have one; yours can, in under a minute.
Download PNG (1280×640)Then: repo → Settings → General → Social preview → Edit → Upload an image.
How to add it to your repository
- Download the PNG above.
- Open your repository on GitHub and go to Settings → General.
- Under Social preview, click Edit → Upload an image and choose the file.
GitHub recommends 1280×640 pixels and files under 1 MB, which is exactly what this tool produces. Link previews on X, LinkedIn and Slack can take a while to pick up the new image, because those sites cache previews.