Converts a unix timestamp, ISO string, or human readable date into multiple formats.
#
Request
GET https://api.synz.xyz/tools/timestamp
#
Parameters
| Name |
Type |
Description |
| value |
string |
Required. A unix timestamp (seconds or ms), ISO 8601 string, or any parseable date string. |
#
Response
{
"iso": "2026-05-16T14:23:01.000Z",
"unix": 1747405381000,
"utc": "Sat, 16 May 2026 14:23:01 GMT",
"relative": "2 hours ago",
"valid": true
}
#
Fields
| Field |
Type |
Description |
| iso |
string |
ISO 8601 formatted timestamp |
| unix |
number |
Unix timestamp in milliseconds |
| utc |
string |
UTC formatted string |
| relative |
string |
Human readable relative time (e.g. "2 hours ago", "in 3 days") |
| valid |
boolean |
Whether the input was successfully parsed |
#
Examples
curl https://api.synz.xyz/tools/timestamp?value=1747405381
curl https://api.synz.xyz/tools/timestamp?value=2026-05-16T14:23:01.000Z
curl https://api.synz.xyz/tools/timestamp?value=2026-01-01
#
Errors
| Status |
Description |
| 400 |
Missing or unparseable value |