- Home
- Generators & Encoders
- Unix Timestamp Converter
Unix Timestamp Converter
Convert a Unix timestamp in seconds or milliseconds to UTC and local time, or the other way round.
What it is for?What it is for?
Databases, logs, JWT claims and APIs often store time as one plain number. This page turns that number into a date you can read, and turns a date back into the number. Use it to check when a token expires, what a created_at column means, or which value to put in a test.
Seconds and milliseconds
Unix time counts seconds since 1970-01-01 00:00:00 UTC. JavaScript and some APIs count milliseconds instead, which is a number about a thousand times larger. This page treats 100 billion and above as milliseconds.
How to use it
Type a timestamp and the result shows seconds, milliseconds, ISO 8601, UTC and your local time. Or pick a date and time in the local field to get the timestamp. Use current time fills in now. A minus sign is accepted for dates before 1970. Decimals are not.
Example
1700000000 is 2023-11-14 22:13:20 UTC. In Istanbul, at UTC+3, that is 01:13:20 on 15 November. The timestamp is the same everywhere; only the local reading changes.
Common mistakes
- Reading milliseconds as seconds gives a date tens of thousands of years away. Reading seconds as milliseconds gives a date in January 1970.
- The local date field uses the time zone of this browser. A server in another zone will show a different clock time for the same number.
- A 32-bit signed integer runs out on 19 January 2038. Store timestamps in a 64-bit column.
It stays in the browser
The conversion runs in this tab with your browser's clock and time zone. Nothing is sent to a server.