Unix Timestamp Converter
Convert epoch time to dates in UTC and UK time, and dates back to epoch time
Current Unix time
– seconds
– –
Enter a number of seconds, milliseconds, microseconds or nanoseconds since 1 January 1970 UTC, or a date such as 2026-03-29T01:30, 29/03/2026 01:30 (day first) or Sun, 29 Mar 2026 01:30:00 +0000. Converted as you type.
Converted
Batch conversion
Each line uses the unit and time zone choices above. The output is tab-separated (input, Unix seconds, ISO 8601 UTC, UK time) so it pastes straight into a spreadsheet. Up to 5,000 lines.
Batch results
About Unix timestamps
A Unix timestamp (also called epoch time or POSIX time) counts the seconds that have passed since 00:00:00 UTC on Thursday 1 January 1970, the "Unix epoch". It ignores leap seconds, so every day is exactly 86,400 seconds long. Because it is a single number with no time zone attached, it is the simplest way for computers to store and compare moments in time: log files, databases, JWT expiry claims, HTTP caches, file systems and most APIs use it somewhere.
The catch is that the same moment can be written with different precision. Classic Unix tools and most APIs use seconds (10 digits today). JavaScript's Date.now() and Java's System.currentTimeMillis() use milliseconds (13 digits). Python's time.time_ns(), Go and many tracing systems use microseconds (16 digits) or nanoseconds (19 digits).
How to use the converter
- Type or paste a timestamp. The tool counts the digits to guess the unit: up to 11 digits is read as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and more as nanoseconds. The guess is shown above the results; pick a unit under Numbers are in to override it.
- Or type a date. ISO 8601 (
2026-11-09T14:30:00Z), RFC 2822 (Mon, 09 Nov 2026 14:30:00 +0000) and UK-style09/11/2026 14:30(always read day first) are understood. A date without a time zone or offset is read in the zone you choose, UK time by default. - Read the results: the timestamp in every unit, ISO 8601 in UTC, RFC 3339 with the UK offset, RFC 2822 and HTTP date formats, and the moment in UTC, in UK time (with GMT or BST) and in your device's own zone, plus how long ago or how far ahead it is.
- Use Copy link to share a conversion. The link carries only the value you typed (as
?t=), so the recipient sees the same result.
Worked examples
0is Thursday 1 January 1970 00:00:00 UTC, which was 01:00:00 in the UK, because Britain was trialling year-round British Standard Time (GMT+1) from 1968 to 1971.1000000000is Sunday 9 September 2001 at 01:46:40 UTC, 02:46:40 BST.-1is one second before the epoch: 31 December 1969 at 23:59:59 UTC. Negative timestamps are perfectly valid; they simply mean "before 1970".1774747800000has 13 digits, so it is read as milliseconds: Sunday 29 March 2026 at 01:30:00 UTC, which is 02:30 BST, because UK clocks went forward at 01:00 UTC that morning.2026-10-25 01:30in UK time happens twice, because clocks go back from 02:00 BST to 01:00 GMT. The tool tells you so and uses the first occurrence (BST), as most software does. Similarly2026-03-29 01:30UK time never happened, and the tool says so rather than inventing an answer.
The Year 2038 problem
Older software stores Unix time in a signed 32-bit integer, whose largest value is 2147483647: 03:14:07 UTC on Tuesday 19 January 2038. One second later such a counter wraps round to -2147483648, which reads as 13 December 1901. Modern 64-bit systems are unaffected, but embedded devices, old databases and file formats still use 32 bits. The converter flags any value outside the signed 32-bit range so you can spot risky ones.
Batch mode
Paste a column of values from a log file or spreadsheet into Batch conversion, one per line, and every line is converted at once. Lines that cannot be read are marked with the reason, so one bad value does not stop the rest.
Limitations
JavaScript dates cover about 271,821 BC to AD 275,760, so values beyond that are rejected. Time zone rules come from your browser's built-in database; historic UK rules are accurate back to the late 19th century, while dates before 1847 use local mean time. Leap seconds are ignored, as they are by Unix time itself. Dates are shown in the proleptic Gregorian calendar, even before Britain adopted it in 1752. Relative times use your device's clock.
Privacy
All conversions run in your browser. Nothing you type is sent to a server or stored. Only when you press Copy link is the value you entered placed in the address bar, and the batch box is never included.
Common questions
What is a Unix timestamp?
A Unix timestamp is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. It is a single number with no time zone attached, and it ignores leap seconds, so every day counts as exactly 86,400 seconds. For example, 1000000000 is 9 September 2001 at 01:46:40 UTC.
Is a Unix timestamp in seconds or milliseconds?
A Unix timestamp is traditionally in seconds, but many systems use milliseconds, so count the digits. A present-day timestamp has 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. JavaScript's Date.now() returns milliseconds, while most Unix tools and APIs use seconds. The converter on this page guesses the unit from the digit count.
Is a Unix timestamp affected by time zones?
A Unix timestamp is not affected by time zones, because it always counts from midnight UTC on 1 January 1970. The same moment has the same timestamp everywhere in the world. A time zone only matters when the number is turned into a readable date, which is why one timestamp can be shown as 01:30 in UTC and 02:30 in British Summer Time.
How do I get the current Unix timestamp?
To get the current Unix timestamp in seconds, run date +%s in a Linux or macOS terminal, Math.floor(Date.now() / 1000) in JavaScript, or int(time.time()) in Python. JavaScript's Date.now() on its own returns milliseconds, which is why it is divided by 1,000 to give seconds.