#000000
Gradient direction
#000000
John Doe
July 13
• 5 min read
Once your OG image is ready, simply save it as og.png in your /public folder. Then follow the steps based on your tech stack — whether you're using plain HTML, Next.js, or React. Simple setup, perfect preview.
1
2
3
4
5
6
7
8
9
10
11
<!-- OG Tags -->
<meta property="og:title" content="Your Page Title" />
<meta property="og:description" content="Your page description" />
<meta property="og:image" content="https://mydomain.co/og.png" />
<meta property="og:url" content="https://mydomain.co" />
<!-- X Card Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://mydomain.co/og.png" />
<!-- DO NOT forget to change the 'mydomain.co' to your domain. -->
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// app/page.js or app/page.tsx
export const metadata = {
title: "Your Page Title",
description: "Your page description",
openGraph: {
title: "Your Page Title",
description: "Your page description",
url: "https://mydomain.co",
siteName: "Your Site Name",
images: [
{
url: "/og.png",
width: 1200,
height: 630,
alt: "OG Image Alt Text",
},
],
type: "website",
},
twitter: {
card: "summary_large_image",
images: ["/og.png"],
},
};
1
2
3
4
5
6
7
8
9
10
11
// Using react-helmet in React projects
import { Helmet } from "react-helmet";
<Helmet>
<meta property="og:title" content="Your Page Title" />
<meta property="og:description" content="Your page description" />
<meta property="og:image" content="https://mydomain.co/og.png" />
<meta property="og:url" content="https://mydomain.co" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://mydomain.co/og.png" />
</Helmet>;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// gatsby-config.js
module.exports = {
plugins: ["gatsby-plugin-react-helmet"],
};
// in your page/component
import { Helmet } from "react-helmet";
<Helmet>
<meta property="og:title" content="Your Page Title" />
<meta property="og:description" content="Your page description" />
<meta property="og:image" content="https://mydomain.co/og.png" />
<meta property="og:url" content="https://mydomain.co" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://mydomain.co/og.png" />
</Helmet>;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Nuxt 3 - in a page component
<script setup>
useHead({
title: 'Your Page Title',
meta: [
{ property: 'og:title', content: 'Your Page Title' },
{ property: 'og:description', content: 'Your page description' },
{ property: 'og:image', content: 'https://mydomain.co/og.png' },
{ property: 'og:url', content: 'https://mydomain.co' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:image', content: 'https://mydomain.co/og.png' },
],
})
</script>
Not sure how your website will look when shared on social media? The OG Image Preview tool shows exactly how your link will appear on platforms like Facebook, Twitter (X), and Discord.
Paste the URL and get a real-time preview of your site – exactly as users will see it in messages or feeds.
This is the easiest way to catch mistakes, polish your branding, and ensure that every shared link makes an impact.
⚡ Instant simulation • No setup required • Realistic social preview
The OG image (Open Graph image) is the visual preview shown when your link is shared on platforms like Twitter (X), Facebook, LinkedIn, Discord, or iMessage. It's the first impression – and it determines whether users will click or scroll past.
Custom OG images increase your link engagement, maintain brand consistency, and help you stand out in crowded feeds. Small effort, big payoff.
✅ Recommended size: 1200×630 pixels. Use sharp text, high contrast, and relevant visuals.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.