How do I preview Open Graph and Twitter Card meta tags?
Enter a URL or paste HTML containing meta tags to see how your page will look when shared on Facebook, Twitter/X, LinkedIn, and Slack. The tool validates required tags and flags missing or incorrect Open Graph and Twitter Card properties. Everything runs in your browser.
URL: https://devbolt.dev/tools/json-formatter
og:title: JSON Formatter & Validator og:description: Format, validate, and minify JSON — free, client-side og:image: /og/json-formatter.png og:type: website Twitter card: summary_large_image
Open Graph Preview & Debugger
Preview how your links look on Facebook, Twitter/X, LinkedIn, and Slack. Debug missing or invalid meta tags.
Enter a URL to fetch and analyze its Open Graph and meta tags.Ctrl+Enter to analyze
Enter a URL or paste HTML above to preview how your page looks when shared on social media.
Works with Facebook, Twitter/X, LinkedIn, Slack, Discord, and more.
Tips & Best Practices
Test OG images at 1200x630px — that's the universal sweet spot
Facebook, LinkedIn, Twitter, and Slack all render OG images differently, but 1200x630px works well across all platforms. Keep important text in the center 60% of the image since platforms crop edges differently.
OG tags are cached aggressively by social platforms
Facebook and LinkedIn cache OG metadata for days to weeks. Changing your og:image or og:title won't update existing shares. Use Facebook's Sharing Debugger and LinkedIn's Post Inspector to force a cache refresh after updating.
og:description should be 55-200 characters for best display
Too short and platforms may fall back to page content. Too long and it gets truncated mid-sentence. Write a compelling 2-sentence summary: what the page is + why someone should click. This is your ad copy for social sharing.
Sanitize user-generated content in dynamic OG tags
If your OG tags include user-submitted content (like post titles), ensure proper HTML entity encoding. Unescaped quotes or angle brackets in og:title/og:description can break the meta tag structure and enable XSS via social sharing previews.
Frequently Asked Questions
How do I preview my Open Graph tags before sharing?
Why does my shared link show the wrong image on social media?
What are the recommended Open Graph image dimensions?
Related Inspect Tools
Chmod Calculator
Calculate Unix file permissions with an interactive permission matrix
JSON Path Tester
Test JSONPath expressions against JSON data with real-time evaluation
Color Contrast Checker
Check WCAG 2.1 color contrast ratios for AA and AAA accessibility compliance
JSON Schema Validator
Validate JSON data against JSON Schema (Draft 07) with detailed error reporting and schema generation