How Discord builds link previews from Open Graph, oEmbed and its cache
By TechCompare · Updated · How we check
Discord reads the standard OG tags, so use a 1200x630 image. If you update your OG tags and need embeds to refresh, add a cache-busting query parameter. Test in a private Discord server before sharing publicly.
Discord generates link embeds using og:title, og:description, and og:image tags. When a user posts a URL in a Discord channel, Discord's servers fetch the page, extract the OG tags, and cache the result. The embed appears automatically with no user action needed. Image size and placement depend on the embed layout, so use a 1200x630 source when you want a reliable large preview.
How this is calculated
Discord's embed cache is aggressive and hard to bust. Once Discord fetches your OG tags, it may cache them for hours or days. Changing the tags on your server won't immediately update embeds already posted. The workaround is to append a query parameter (?v=2) to the URL, which can make Discord treat it as a new link.
If og:image is missing, unreachable, or unsuitable for the embed layout, Discord may omit the image or show a smaller preview. Discord's public guidance does not establish a universal hard minimum for every embed layout. For best results, use a 1200x630 image.
Discord also respects og:site_name, og:video for embedded video, and theme-color for the embed's left border color.
Verdict
Add a cache-busting query like ?v=2 when you change OG tags, because Discord stores them aggressively and may not refresh embeds already posted. Appending it can trigger a new fetch. There is no documented universal hard cutoff for every embed layout. Use a reachable 1200x630 og:image for the best chance of a large preview, and remember that Discord can show thumbnails or omit images depending on the embed data.
More OG scenarios
Related guides
Frequently asked questions
Why does Discord show an old preview after I updated my OG tags?
Why is there no image in my Discord link embed?
Can I change the color of a Discord embed's left border?
Related tools
JSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use toolRobots.txt Tester
Test which crawlers a site's robots.txt allows for a page, from Googlebot and Bingbot to GPTBot and ClaudeBot, then check its sitemaps and redirects.
Use toolColor Picker
Pick colors, convert between HEX, RGB, HSL, HSV, OKLCH and CMYK, and find the nearest CSS and Tailwind color.
Use tool