Timestamp Converter

Convert between Unix timestamps, ISO 8601, RFC 2822, and relative time formats

GET 1 credit /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
Response 200 OK
{
  "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

Live Demo

Description

Convert between Unix timestamps, ISO 8601, RFC 2822, and relative time formats

How to Use

1

1. **Current time** — Send a GET request with no parameters to get the current UTC time in all formats.

2

2. **From Unix timestamp** — Pass `ts` with a Unix epoch value (e.g. `ts=1710500000`).

3

3. **From ISO 8601** — Pass `iso` with a datetime string (e.g. `iso=2024-03-15T12:53:20Z`).

4

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

Frequently Asked Questions

What happens if I pass both `ts` and `iso`?
The `ts` parameter takes priority. Only one is used.
Does it support fractional Unix timestamps?
Yes. Pass decimal values like `ts=1710500000.123` for sub-second precision.
What timezone is the output in?
All output is in UTC. If you pass an ISO string with a timezone offset, it is preserved in the conversion.

Start using Timestamp Converter now

Get your free API key and make your first request in under a minute.