DataToolsLab
Date & Time Tools

Relative Time Formatter

Format dates as relative time like '2 hours ago' or 'in 3 days'.

Loading tool…

What is Relative Time?

A formatter that turns absolute instants into conversational relative phrases, the kind you see in chat apps and feeds.

How it works

It compares the input instant to now and picks the largest fitting unit (second → minute → hour → day → week), using Intl.RelativeTimeFormat for locale-aware output.

  1. Enter your input. Type or paste your input into the field above — the tool responds instantly.
  2. Review the result. Output updates live as you type. Everything runs entirely in your browser.
  3. Copy or download. Use the Copy button to grab the result, or Download to save it as a file.

Examples

Realistic sample

Paste or type any realistic input — the tool computes the result locally and instantly.

Common mistakes

Expecting a server round-trip

Nothing is uploaded — every tool in this category runs entirely in your browser.

Online