Developer Tools

Timestamp Converter

Convert between Unix timestamps and human-readable dates.

How to Use Timestamp Converter

1

Type a date and time such as 2024-03-15 14:30:00, or paste a numeric timestamp into the field.

2

Choose the timezone: UTC, your local time, or a manual GMT offset such as +05:30.

3

Click the "Process" button to generate Unix seconds, milliseconds, ISO 8601, and readable output.

4

Copy whichever format your system expects, such as a DATETIME value for a database column.

Features

Converts in both directions, date strings to epoch values and epoch values to dates
Outputs both seconds and milliseconds, since JavaScript and PHP disagree on which
Supports UTC, local time, and manual GMT offsets including half-hour zones
Produces ISO 8601 and RFC 2822 output for API payloads and email headers
Names the timezone used so daylight saving surprises are explained
No configuration, no sign-up, and the conversion runs in your browser

Frequently Asked Questions

Yes, it is free, needs no account, and has no usage limit. You can convert as many timestamps as you like while debugging an incident at midnight, which is exactly when you need it.
They are the same instant counted in different units. Seconds are 10 digits such as 1710505800, milliseconds are 13 digits such as 1710505800000. JavaScript Date uses milliseconds while most databases and PHP strtotime use seconds.
Almost always a timezone mismatch. The value is the same instant, but it is rendered in whatever zone you select, and a DST boundary can shift the rendered time by an hour twice a year. Compare in UTC first to confirm the underlying value is right.
It can, based on the number of digits, but it is safer to choose explicitly. A 10-digit value is treated as seconds and a 13-digit value as milliseconds, while anything in between is ambiguous and should be entered with the unit stated.

About Timestamp Converter

Epoch time shows up everywhere in backend work: a created_at column that stores an integer, a JWT with numeric iat and exp claims, a cron entry expressed in seconds, a log line you are trying to correlate. Reading a bare 1710505800 requires mental arithmetic, and getting it wrong by an hour because of a timezone assumption is a common and expensive bug.

This converter works in both directions. Type a date and time and you get Unix seconds, milliseconds, an ISO 8601 string, and an RFC 2822 value. Paste an epoch value and you get the full readable date, the day of the week, and the offset. Milliseconds are supported explicitly, since JavaScript produces 13-digit timestamps and PHP produces 10-digit ones, and confusing the two is a classic off-by-a-thousand error.

Timezone handling is the other half of the problem. You can work in UTC, in your browser local zone, or in a manual GMT offset including awkward half-hour zones like +05:30 and +05:45. Because daylight saving transitions make some local times ambiguous or non-existent, the output always names the zone it used, so a surprising result is explained rather than mysterious.

When to Use This Tool

  • Converting a Unix value from a database column into something readable
  • Turning a human date into the integer a DATETIME column expects
  • Building an ISO 8601 string for a JSON API field
  • Checking when a JWT exp claim actually expires
  • Writing a cron expression for a scheduled job in another timezone