SEO Glossary
Time to First Byte (TTFB)
Time to First Byte (TTFB) is the duration between a browser sending an HTTP request and receiving the first byte of data from the web server.
Explained
Time to First Byte (TTFB) measures the duration between a user's browser sending an HTTP request and receiving the first byte of data from the web server. It encompasses DNS lookup, server connection establishment, and server processing time, acting as the foundation for all other page-speed optimizations.
TTFB shapes the very first impression visitors have of a site, influencing bounce rates, conversions, and search visibility. With Google's Core Web Vitals and mobile-first indexing, sites achieving sub-200ms TTFB typically see better rankings, lower acquisition costs, and higher conversion rates than slower competitors.
Key optimization factors include:
- Upgrading from shared hosting to VPS, dedicated, or SSD-based cloud hosting located near the target audience.
- Optimizing database queries, indexes, and removing bloated data.
- Deploying a CDN with proper cache headers for global edge delivery.
- Enabling server-side caching such as Redis, Memcached, Varnish, or PHP OPcache.
- Using fast DNS providers like Cloudflare DNS or Amazon Route 53.
- Auditing code, themes, and plugins to eliminate inefficient server processing.
TTFB is measured with tools such as GTmetrix, Google PageSpeed Insights, WebPageTest, Lighthouse, UptimeRobot, and Pingdom. Under 200ms is considered excellent, 200-400ms is good, and above 600ms can significantly harm traffic and revenue.