Timestamp Converter
Convert between Unix timestamps, ISO 8601, RFC 2822, and relative time formats
/v1/timestamp
curl "https://devtools.toolkitapi.io/v1/timestamp?ts=1710500000"
import httpx
resp = httpx.get(
"https://devtools.toolkitapi.io/v1/timestamp?ts=1710500000",
)
print(resp.json())
const resp = await fetch("https://devtools.toolkitapi.io/v1/timestamp?ts=1710500000", {
});
const data = await resp.json();
console.log(data);
# See curl example
{
"unix": 1710500000.0,
"unix_ms": 1710500000000,
"iso8601": "2024-03-15T12:53:20+00:00",
"rfc2822": "Fri, 15 Mar 2024 12:53:20 +0000",
"rfc3339": "2024-03-15T12:53:20+00:00",
"relative": "1 year ago",
"day_of_week": "Friday",
"week_number": 11,
"is_dst": false
}
Try It Live
Description
How to Use
1. **Current time** — Send a GET request with no parameters to get the current UTC time in all formats.
2. **From Unix timestamp** — Pass `ts` with a Unix epoch value (e.g. `ts=1710500000`).
3. **From ISO 8601** — Pass `iso` with a datetime string (e.g. `iso=2024-03-15T12:53:20Z`).
4. Inspect the response for all output formats plus the human-readable `relative` time and `day_of_week`.
About This Tool
Timestamp Converter takes a Unix timestamp or an ISO 8601 datetime string and converts it into every common format at once — Unix epoch (seconds and milliseconds), ISO 8601, RFC 2822, RFC 3339, relative time, day of the week, and ISO week number.
Call it with no parameters to get the current time in all formats, or pass a specific timestamp or ISO string to convert.
Why Use This Tool
- Quick conversion — Convert between Unix timestamps and human-readable dates while debugging logs
- Timezone verification — Confirm how a stored timestamp renders in UTC
- Relative time — Check how long ago (or until) a given timestamp is
- Log correlation — Convert epoch timestamps from different systems to a common format
Frequently Asked Questions
What happens if I pass both `ts` and `iso`?
Does it support fractional Unix timestamps?
What timezone is the output in?
Start using Timestamp Converter now
Get your free API key and make your first request in under a minute.