Glossary
Time to First Byte (TTFB)
Nothing on the page can happen faster than the server starts answering.
By Roger Campos · Last updated: September 2026
TL;DR
Time to First Byte (TTFB) is the time from when a browser starts requesting a page to when the first byte of the response arrives. It includes redirects, DNS lookup, connection and TLS setup and the server's own processing. web.dev rates 0.8 seconds or less as good and over 1.8 seconds as poor.
Free plan, no credit card. 1,000 credits a month.
How it works
What is inside it
- 1Redirects — each one is a full extra round trip.
- 2DNS lookup — resolving the hostname.
- 3Connection and TLS — the TCP handshake and the HTTPS negotiation.
- 4Server processing — the application building the response: database queries, rendering, upstream API calls.
- 5First byte — the first packet of the response reaching the browser.
In the browser, performance.getEntriesByType("navigation")[0].responseStart is the TTFB of the current page, in milliseconds from navigation start.
In practice
Why it matters
TTFB is not a Core Web Vital, but it is the first slice of LCP: a page whose server takes 2 seconds to answer cannot have an LCP under 2.5 seconds unless everything after it is nearly instant. A redirect from http:// to https://www. can cost more than the server itself.
Typical fixes: serve cached HTML from a CDN close to the visitor, cache expensive queries, stream the response head before the body is ready, and link straight to the final URL instead of a redirect chain.
URLpipe
Measuring it with URLpipe
A /lighthouse audit's headline metrics include FCP, Speed Index, LCP, TBT and CLS, not TTFB; the server's response time is in the full audits, which include_audits: "true" adds, among Lighthouse's checks on the document request. Mobile runs simulate a slow 4G network, which inflates it.
Don't confirm TTFB from URLpipe's own response headers: X-Processing-Time-Ms is how long the whole analysis took — rendering included — not how long the target site took to answer.
Try it
Time to First Byte (TTFB), on a page you choose
Related terms
FAQ
Frequently asked questions
What is a good TTFB?
Is TTFB a Core Web Vital?
Does a CDN improve TTFB?
See it on your own pages.
Free plan, no card. Confirm your email and your API key is live — you'll be making real requests in minutes.