Time Ago Formatter
Time Ago Formatter turns any moment into a friendly relative phrase like '3 hours ago' or 'in 2 days'. Pick a target date and time, and it compares that instant against the current moment, then reports the difference using the largest whole unit that fits, from minutes up to years. Past dates read as 'ago' and future dates read as 'in', so the same tool covers both directions.
How to format relative time
- Set the 'Target date and time' field, or click a preset like '3 hours ago', 'Yesterday', 'In 2 days' or 'Last week'.
- Read the large relative phrase in the result panel below the presets.
- Check the 'Compared against' line to see the exact reference moment being used.
- Click 'Refresh now' to re-compare against the current instant if the page has been open a while.
- Click Copy to put the phrase, such as '3 hours ago', on your clipboard.
Examples
A few hours in the past
A time 3 hours before now
3 hours ago
A date in the future
A time 2 days after now
in 2 days
Only seconds apart
A time 30 seconds before now
just now
Frequently asked questions
Which units does it use?
It chooses the largest whole unit that fits: minutes, hours, days, weeks, months (about 30 days) and years (about 365 days). Seconds are not shown on their own; anything under a minute collapses to 'just now'.
What does it show for very recent times?
Anything less than a minute away in either direction reads as 'just now'. So a moment 30 seconds ago and one 30 seconds from now both display 'just now' rather than a seconds count.
Does it handle future dates?
Yes. A past time reads as 'N units ago' and a future time reads as 'in N units'. The presets include both, for example 'Yesterday' looks back while 'In 2 days' looks forward.
How are months and years counted?
They use approximate fixed lengths of 30 and 365 days. This keeps phrases short and predictable, but it means a value near a boundary can round in a way a strict calendar would not. For example about 45 days shows as '1 month ago' even though calendar months vary in length.
Why does the result not change on its own?
The comparison is frozen to the 'now' shown on the 'Compared against' line, so the phrase stays stable while you read it. Click 'Refresh now' to snap the reference to the current instant, which is useful if the tab has been open for a while.
Does it round down or to the nearest unit?
It rounds down to a whole unit. A gap of 90 minutes is '1 hour ago', not '2 hours ago', because only one full hour has passed. The same floor rule applies to every unit.
Are the singular and plural forms correct?
Yes. The tool writes '1 day ago' with no s and '2 days ago' with an s, matching the count for every unit from minutes to years.
What time zone does it use?
Your local time zone. The date picker reads and shows wall-clock time from your device, and the reference 'now' is your device clock, so the phrase reflects the difference as you would experience it locally.
Is my data private, and is there an API?
The interactive tool runs entirely in your browser and never uploads your dates. There is also a JSON API that takes a target timestamp in epoch milliseconds plus an optional 'now', because the engine never reads the clock itself.
Learn more
- How 'time ago' formatting works, and its trade-offs
Why relative time uses the largest unit that fits, how approximate months and years round, and when to prefer an absolute date instead.
Related tools
Countdown Timer
Free online countdown timer. Count down to a target date and time, or run a duration like 25m or 1h 30m. Big live display, presets, and sound.
Age Calculator
Calculate your exact age in years, months and days from your date of birth. See your age in total days, weeks and months too. Free and private.
Add Business Days Calculator
Add or subtract working days from a date, skipping weekends and any holidays you list. See the result date and its day of the week instantly.
Add Days Calculator
Add or subtract calendar days from any date and see the result with its day of the week. Free, instant and works for past or future dates.
Add Time Calculator
Add or subtract hours and minutes from a time of day. See the new clock time and whether it crosses into another day. Free and private.
Add to Date
Add or subtract days, weeks, months and years from any date and get the new date. Handles month-end and leap days correctly. Free and instant.