# Unix timestamp converter

> Turn epoch seconds or milliseconds into a date, and a date in any time zone back into epoch time.

Free epoch converter for unix timestamps. Switch between seconds, milliseconds, microseconds, and nanoseconds, read ISO-8601 and RFC 2822 dates, and convert both ways across IANA time zones. Runs in the browser.

- Page: https://benchline.fabwaseem.com/t/unix-timestamp
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: A unix timestamp, ISO-8601 date, or RFC 2822 date, plus a unit and an IANA time zone.
- Output: Epoch seconds, epoch milliseconds, ISO-8601 in UTC and locally, RFC 2822, and a relative phrase.
- Keywords: epoch converter, unix timestamp, epoch to date, unix time converter
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Paste a timestamp or a date.** A number is read as epoch time. An ISO-8601 or RFC 2822 date is read as a calendar time.
2. **Pick the unit and time zone.** Auto detects seconds, milliseconds, microseconds, or nanoseconds from the length. The zone formats the local time.
3. **Copy seconds, milliseconds, or ISO-8601.** Date to epoch uses the date and time you enter as wall time in the selected zone.

## Use it from an AI agent

MCP tool name: `convert_unix_timestamp`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/unix-timestamp with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Convert epoch seconds, milliseconds, microseconds, or nanoseconds to ISO-8601 and RFC 2822 in an IANA time zone, or convert a calendar time back to epoch.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "input": {
      "default": "",
      "description": "Unix timestamp, ISO-8601, RFC 2822, or now. Leave it empty when year, month, and day are set.",
      "type": "string"
    },
    "timeZone": {
      "default": "UTC",
      "description": "IANA time zone, such as UTC or America/New_York.",
      "type": "string"
    },
    "unit": {
      "default": "auto",
      "type": "string",
      "enum": [
        "auto",
        "s",
        "ms",
        "us",
        "ns"
      ]
    },
    "year": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "month": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "day": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "hour": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "minute": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "second": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "input",
    "timeZone",
    "unit"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "convert_unix_timestamp",
    "arguments": {
      "input": "",
      "timeZone": "UTC",
      "unit": "auto"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Is 10 digits seconds or milliseconds?

Ten digits is seconds. Thirteen digits is milliseconds. Sixteen is microseconds and nineteen is nanoseconds. The Auto unit uses that length, and you can override it.

### Which time zone is the timestamp itself in?

A unix timestamp is always UTC. The time zone only changes how the calendar date is written, or which local time you mean when you convert a date back to epoch.

### What happens during daylight-saving time?

A skipped hour, such as 02:30 on the spring-forward day in America/New_York, is reported as a gap. A repeated hour lists both UTC instants and uses the earlier one.

### Does this page upload the timestamp?

No. Parsing and time-zone math stay in the browser.

## Related tools

- [Date difference calculator](https://benchline.fabwaseem.com/t/date-difference): Count the days, weeks, and business days between two dates.
- [Cron expression builder](https://benchline.fabwaseem.com/t/cron-expression-builder): Build or paste a cron schedule, read it in plain English, and see the next run times.
- [JWT decoder](https://benchline.fabwaseem.com/t/jwt-decoder): Paste a JSON Web Token, read the claims, and verify the signature in the browser.
- [Hash generator](https://benchline.fabwaseem.com/t/hash-generator): MD5, SHA-1, SHA-256, and SHA-512 checksums for text or a file, with HMAC.
