Unix Timestamp Converter

Convert Unix timestamps to human-readable dates. Get code snippets for Go, Python, JavaScript, PHP, Java and Rust.

Current Unix Timestamp

1780823166

2026-06-07T09:06:06.000Z

ISO 8601 / RFC 33392026-06-07T09:06:06.000Z
UTC (RFC 2822)Sun, 07 Jun 2026 09:06:06 GMT
Local time6/7/2026, 9:06:06 AM
Milliseconds1780823166000
Relativein 0s
Code Snippet

What is a Unix Timestamp?

A Unix timestamp (also called Unix time, POSIX time, or epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC — the Unix epoch. It is a language-agnostic, timezone-agnostic way to represent a specific moment in time as a single integer.

APIs and databases often store timestamps as Unix integers. Millisecond precision timestamps (13 digits) are also common in JavaScript APIs — divide by 1000 to get seconds.

Format Comparison

FormatExampleUse case
Unix seconds1748217600APIs, databases, Go, Python, Rust
Unix milliseconds1748217600000JavaScript Date, Java Instant.toEpochMilli()
ISO 86012025-05-26T00:00:00ZJSON APIs, HTTP headers, logs
RFC 33392025-05-26T00:00:00ZGo time.RFC3339, gRPC Timestamps
RFC 2822 (UTC)Mon, 26 May 2025 00:00:00 +0000Email headers, HTTP Last-Modified

Go Timestamp Patterns

go
import "time"

// Current timestamp
now := time.Now().Unix()           // seconds
nowMs := time.Now().UnixMilli()    // milliseconds (Go 1.17+)

// Parse a timestamp
t := time.Unix(1748217600, 0).UTC()
fmt.Println(t.Format(time.RFC3339)) // 2025-05-26T00:00:00Z

// Parse ISO 8601 string
t2, _ := time.Parse(time.RFC3339, "2025-05-26T00:00:00Z")
fmt.Println(t2.Unix()) // 1748217600

// Format options
t.Format(time.RFC3339)         // 2025-05-26T00:00:00Z
t.Format("2006-01-02")         // 2025-05-26  (Go's reference time)
t.Format("02 Jan 2006 15:04")  // 26 May 2025 00:00

Frequently Asked Questions

The Unix epoch is January 1, 1970 at 00:00:00 UTC. All Unix timestamps are measured as seconds (or milliseconds) elapsed since this moment.

Seconds timestamps are 10 digits (e.g., 1748217600). Milliseconds timestamps are 13 digits (e.g., 1748217600000). This tool auto-detects which format you pasted.

Systems using a 32-bit signed integer for Unix time will overflow on January 19, 2038 at 03:14:07 UTC. Modern systems use 64-bit integers which are safe for ~292 billion years.

Go's time formatting uses the reference time Mon Jan 2 15:04:05 MST 2006 — a specific moment (1136239445 Unix time). You replace each part with the desired output format: 2006=year, 01=month, 02=day, 15=24h hour, 04=minute, 05=second.

Related Tools