Getting Google titles and meta descriptions right is harder than it looks.
Character limits are misleading β Google truncates by pixel width, not characters.
So I built three SERP Preview tools that replicate Googleβs behavior with pixel-accurate truncation, real-time previews, and desktop/mobile modes.
π The Three SERP Preview Tools
1οΈβ£ SERP Preview (Combined Tool)
π https://www.frontendtools.tech/tools/serp-preview
- Switch between From URL and Metadata modes
- Default mode: Metadata
- Ideal if you want both workflows in one place
2οΈβ£ SERP Preview from URL
π https://www.frontendtools.tech/tools/serp-preview-from-url
- Fetch title & meta description from any live URL
- Auto-extracts from HTML
- Editable after fetch
- Great for:
- Competitor analysis
- Auditing existing pages
- Verifying published content
3οΈβ£ SERP Preview from Metadata
π https://www.frontendtools.tech/tools/serp-preview-from-meta
- Manual input only (no fetching)
- Designed for pre-publish optimization
- Ideal for:
- Writing new content
- A/B testing titles & descriptions
- Fine-tuning SEO before launch
β¨ Core Features (All Tools)
Pixel-Accurate Truncation
- Uses Canvas API to measure text width
- Matches Googleβs truncation behavior
- Font: Arial (same as Google)
Limits
- Desktop:
- Title: 600px
- Description: 920px
- URL: 600px
- Mobile:
- Title: 540px
- Description: 680px
- URL: 400px
Real-Time SERP Preview
- Live updates while typing
- Desktop & mobile toggle
- Google-style SERP layout
Visual Optimization Indicators
- π’ Green β Optimal
- π Orange β Warning
- π΄ Red β Truncated
Includes:
- Character count
- Pixel width counter
- URL truncation matching Google behavior
Copy & Workflow Features
- One-click copy for title & description
- Full URL visible on hover
- Clear loading & error states
- Progress indicators for fetch operations
π Technical Implementation
- Next.js 15 + React
- TypeScript for type safety
-
pdf-lib not used here β instead:
- Canvas API for pixel measurement
- Server-side API route to fetch HTML safely
- Tailwind CSS for responsive UI
- Framer Motion for smooth transitions
- Lazy-loaded components for performance
All tools run entirely client-side β no tracking, no storage, no third-party APIs.
π― Use Cases
- Optimize meta tags before publishing
- Audit existing pages
- Compare competitor SERPs
- Improve CTR from Google Search
- Avoid title & description truncation
π Try them here:
Top comments (0)