Unix Timestamp Converter

Convert Unix epoch timestamps to human-readable UTC and local dates, or turn any date and time into an epoch timestamp.

Current Unix time 1795873930

UTC date & time

2026-11-28T13:52:10Z

Saturday, November 28, 2026, 13:52:10 UTC

  • Unix seconds1795873930
  • Milliseconds1795873930000
  • Private — runs in your browser
  • Instant results
  • Works on any device

Seconds, milliseconds, microseconds and nanoseconds

Unix time is defined in seconds since 1970-01-01T00:00:00Z (the Unix epoch), but many languages and APIs return sub-second timestamps. For modern dates, you can tell the unit by the number of digits:

UnitDigits (current)ExampleUsed by
Seconds (s)101700000000Unix/Linux, Python, PHP, SQL, JWTs
Milliseconds (ms)131700000000000JavaScript (Date.now()), Java, browser APIs
Microseconds (µs)161700000000000000PostgreSQL, BigQuery, C++ chrono
Nanoseconds (ns)191700000000000000000Go (UnixNano), Rust, Prometheus/OTel

Current Unix timestamp in code

Language / ToolSecondsMilliseconds
JavaScript / TypeScriptMath.floor(Date.now() / 1000)Date.now()
Pythonint(time.time())int(time.time() * 1000)
Bash / macOS / Linuxdate +%sdate +%s%3N (GNU)
PostgreSQLEXTRACT(EPOCH FROM NOW())::bigint(EXTRACT(EPOCH FROM NOW()) * 1000)::bigint
Gotime.Now().Unix()time.Now().UnixMilli()

Notable epoch milestones

Timestamp (s)UTC date & timeMilestone
01970-01-01T00:00:00ZThe Unix epoch
9466848002000-01-01T00:00:00ZY2K (start of year 2000)
10000000002001-09-09T01:46:40Z1 billion seconds (billennium)
17000000002023-11-14T22:13:20Z1.7 billion seconds
21474836472038-01-19T03:14:07ZSigned 32-bit integer limit (Year 2038)

Working with ordinal day-of-year codes or astronomical Julian Day Numbers instead? Try the Julian date converter. For ISO week numbers, see week number.

Frequently asked questions

What is a Unix timestamp?

A Unix timestamp (also called POSIX time or epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970, not counting leap seconds.

How do I tell seconds from milliseconds?

Count the digits. For current dates, a Unix timestamp in seconds has 10 digits (e.g. 1700000000), milliseconds has 13 digits, microseconds has 16 digits and nanoseconds has 19 digits. The converter above detects the unit automatically.

Are Unix timestamps always in UTC?

Yes. A Unix timestamp represents a single instant in UTC regardless of where the server or browser is located. Time zones only apply when formatting that instant for human reading.

Can a Unix timestamp be negative?

Yes. Negative timestamps represent dates before January 1, 1970 UTC. For example, -86400 is December 31, 1969 at 00:00:00 UTC.

What is the Year 2038 problem?

Systems that store Unix time as a signed 32-bit integer top out at 2,147,483,647 seconds — Tuesday, January 19, 2038 at 03:14:07 UTC. One second later it overflows. Modern 64-bit systems are unaffected.

How do I get the current Unix timestamp in JavaScript or Python?

In JavaScript use Math.floor(Date.now() / 1000) for seconds (Date.now() returns milliseconds). In Python use int(time.time()).

Embed this calculator

Add the Unix Timestamp Converter to your website or blog — free, no ads, and nothing your visitors type is collected. Choose a look, then paste the code where you want it to appear.

Layout
Theme
Color

Preview

The widget resizes itself if your site allows scripts; otherwise it uses a fixed height. Please keep the credit line — it helps other people find the tool.

Sources

See how we build and test our tools in our editorial policy.