DNS TTL calculator

Convert a DNS TTL between seconds and a readable time (1h30m, 2d, 1w), write it in BIND zone notation, see if it is a good value, and plan when a

loading DNS TTL calculator
About this tool

What is a DNS TTL and how long should it be?

Every DNS answer carries a TTL, the time to live: the number of seconds a resolver may keep that answer before asking again. A short TTL lets a change spread quickly but sends more queries to your name servers. A long TTL saves queries and speeds up lookups but makes every change slow to reach people. Choosing the value is a trade-off, and changing it at the right moment is what avoids a bad migration day.

The trouble is the format. DNS panels ask for seconds (3600), zone files accept BIND notation (1h, 1w2d3h), and people think in hours and days. This calculator converts between them, shows the value in minutes, hours and days, and says in plain words whether the number is short, usual or too long for a normal record. A TTL is a whole number from 0 to 2147483647 seconds (RFC 2181), and the tool enforces that limit.

It also helps you plan a change. Resolvers that cached the old answer just before you edited the record can keep serving it for one full old TTL. If you will move a website or a mail server, lower the TTL ahead of time, wait for the old value to expire everywhere, make the change, and raise it again afterwards. Enter the time of the change and the tool shows when everyone will see the new answer, and when to lower the TTL. The calculation runs in your browser and nothing is sent.

How to convert and check a TTL

  1. Type the value in TTL. It opens with 3600. You can write seconds (3600) or units: 1h30m, 2d, 1w2d, 1w2d3h4m5s, or words such as 90 minutes and 1 day 2 hours. Letters are w, d, h, m and s, and case does not matter.
  2. Or click one of the Common values: from one minute up to one week.
  3. Read the Result. Readable is the time in plain words, Seconds is the value to paste into a DNS panel that asks for seconds, and BIND zone notation is the form for zone files. You also get Minutes, Hours and Days.
  4. A short sentence under the result says what that range means: no caching, under a minute, under an hour, a usual range of one hour to one day, more than a day, or more than a week.
  5. To plan a change, keep Plan a change on and fill Change made at (local time), in the format 2026-11-22T14:30. The tool tells you until when resolvers may serve the old answer, and before what time you should have lowered the TTL.

If you need to read the result as a longer duration, try the time duration converter. To check how long an outage budget really is, use the uptime and SLA calculator. For mail records that depend on DNS, the email authentication records tool is a good next step.

Examples

From seconds to BIND notation

3600 is 1h. 5400 is 1 hour 30 minutes, written 1h30m, which is 90 minutes or 1.5 hours. 86400 is 1d. The reverse works too: 1h30m gives 5400 seconds.

Longer values and words

90061 is 1d1h1m1s. 691200 is 1w1d, because 8 days is one week and one day. 1w2d3h4m5s is 604800 + 172800 + 10800 + 240 + 5 = 788645 seconds. In words, 1 day 2 hours is 93600 seconds and 1 week is 604800.

Reading the band

The sentence under the result changes with the value. 0 means caches do not keep the answer. 30 seconds is under a minute. 300 (5 minutes) is under an hour, good for records you change often. 3600 and 86400 are in the usual range. 172800 (two days) is more than a day, and 1000000 is more than a week, where a mistake stays for a long time.

Planning a change

You will change an A record at 2026-11-22T12:00 and its TTL is 3600. The tool says resolvers that cached the old answer just before the change may serve it until 13:00 that day. To make that wait short, lower the TTL before 11:00, an hour earlier, so the old TTL has expired in every cache. With a TTL of one day, the same plan needs a day of notice.

Common errors and how to fix them

  • Write the TTL as seconds (3600) or with units: 1h30m, 2d, 1w2d3h. Letters are w, d, h, m, s. The text is not valid. soon fails, and so do decimals such as 1.5h and negatives such as -5. Use 90m instead of 1.5h.
  • The largest TTL is 2147483647 seconds (RFC 2181). The value is over the limit, for example 2147483648. Use a smaller number. No real record needs that much.
  • Enter the date and time like 2026-11-22T14:30. In plan mode the date is not in that format. Use year-month-day, the letter T, hours and minutes.
  • The change is not seen right after I edit the record. Remember that browsers and operating systems also cache, and some resolvers apply their own minimum or maximum TTL.
  • The TTL in the panel is different from the one in the tool. Some DNS panels only offer fixed choices and round the value. Read it back with dig to see what is really served.

Frequently asked questions

What TTL should I use for a normal website?

Between one hour and one day is the usual range. Use 300 to 900 seconds for records you expect to change soon, and go back to 3600 or more after the change.

Does lowering the TTL take effect immediately?

No. Caches that already hold the answer keep it until the old TTL expires. That is why you lower it at least one old TTL before the change.

Is 0 a valid TTL?

Yes, but caches will not keep the answer, so every lookup reaches your server. Use it for testing only.

Is my input sent anywhere?

No. The conversion and the planning happen in your browser.

Report a problem