Unix Timestamp Converter: Epoch to Date and Date to Epoch
Convert Unix timestamps to dates in any time zone, and back. Output covers UTC, local time and any zone you choose, with live current time.
Loading tool…
How to use the Timestamp Converter
- Paste a Unix timestamp, or switch to Date to timestamp or Batch.
- Leave the unit on Auto-detect, or choose seconds, milliseconds, microseconds or nanoseconds.
- Choose the time zone you want to see, such as Asia/Kolkata.
- Copy any row, or open the code snippets for your language.
About this tool
A Unix timestamp is the number of seconds since 00:00:00 UTC on 1 January 1970, called the epoch. It has no time zone: the same number means the same instant everywhere, and the zone only affects how that instant is displayed. JavaScript and Java use milliseconds, some databases and Go use microseconds or nanoseconds.
In auto mode, a value of about 10 digits is read as seconds, 13 digits as milliseconds, 16 digits as microseconds and 19 digits as nanoseconds (thresholds at 11, 14 and 17 digits). Override this when your data is unusual, for example millisecond values before 1973. The result shows UTC, your local zone and any IANA zone you choose, ISO 8601 and RFC 2822 text, microsecond and nanosecond values, day of the year and ISO week number, and a relative description. Batch mode converts one timestamp per line, and code snippets for JavaScript, Python, PHP, Java, Go, MySQL, PostgreSQL and the shell are generated for the moment you converted.
When converting a date to a timestamp, you choose whether the time you typed belongs to UTC, your local zone or the chosen zone. Daylight saving rules come from your browser's time zone data. A time that does not exist or occurs twice on a daylight saving change day resolves to one of the valid instants. Values after 19 January 2038 03:14:07 UTC get a note about the 32-bit overflow.
Frequently asked questions
How do I know if a timestamp is in seconds or milliseconds?
Ten digits is usually seconds and thirteen is usually milliseconds for present-day dates. Auto-detect uses digit counts up to nanoseconds, and you can choose the unit yourself.
What is the epoch?
The Unix epoch is 1 January 1970 00:00:00 UTC, the zero point of Unix time.
Does a Unix timestamp include a time zone?
No. It is always counted from UTC. The time zone only changes how the date is displayed.
Can I convert many timestamps at once?
Yes. Use Batch mode and paste one timestamp per line.
What is the Year 2038 problem?
Systems that store Unix time in a signed 32-bit integer overflow in January 2038. This tool uses 64-bit numbers, so it is not affected.
Need a custom tool or website?
IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.









