Logo
Prompt Minds

Unix Timestamp Converter — Epoch to Date and Back

Convert epoch seconds, milliseconds, micro- or nanoseconds to readable dates in any time zone — and back.

यूनिक्स टाइमस्टैम्प को किसी भी टाइम ज़ोन की तारीख में बदलें — और तारीख को टाइमस्टैम्प में।

100% private — runs in your browser · Last Updated: October 2026
Current Unix time—

Timestamp → date

Date → timestamp

PDNob logoPDNob Your Lightweight AI-Powered PDF Editor Edit · Convert · Compress · OCR · AI Download for Desktop

Quick Tips

10 digits = seconds, 13 digits = milliseconds
IST is always UTC+05:30
Store times as UTC; convert only for display
JavaScript Date uses milliseconds
Plan for 64-bit timestamps (Year 2038)
All Tools
Advertisement

Quick Answer

Paste a Unix timestamp and the converter shows the date instantly — 1760680000 is 17 October 2025, 05:46:40 UTC, or 11:16:40 IST. It detects whether the number is in seconds (10 digits), milliseconds (13 digits), micro- or nanoseconds, and shows ISO 8601, RFC 2822 and “how long ago”. To go the other way, pick a date, time and time zone to get the epoch seconds and milliseconds.

What is a Unix Timestamp Converter?

A Unix Timestamp Converter (यूनिक्स टाइमस्टैम्प कन्वर्टर) translates between epoch time — the long numbers computers use to store moments, such as 1760680000 — and human-readable dates like “Friday, 17 October 2025, 11:16 AM IST”. Unix time counts seconds since midnight UTC on 1 January 1970. Because it is a single number that means the same instant everywhere on Earth, databases, APIs, log files, JWT tokens, analytics events and file systems all use it. But nobody can read 1760680000 at a glance, and mixing up seconds and milliseconds or time zones causes some of the most common bugs in software.

This free converter shows the current timestamp live, converts any timestamp — in seconds, milliseconds, microseconds or nanoseconds, detected automatically — into UTC, your local time or any of 400+ time zones, and formats it as ISO 8601, RFC 2822 and relative time. It also converts any date and time in any zone back into epoch seconds and milliseconds, applying daylight-saving rules correctly. Click any result to copy it.

Key Features

  • Live epoch clock — current Unix time, updated every second.
  • Automatic unit detection — 10, 13, 16 or 19 digits → s, ms, µs or ns.
  • Any time zone — your own, UTC, IST, New York, London, Dubai and every IANA zone.
  • Standard formats — ISO 8601 (UTC and with offset), RFC 2822.
  • Relative time — “in 3 days”, “2 years ago”.
  • Date → timestamp in any zone, DST-aware.
  • Exact nanoseconds — large values parsed with BigInt, no rounding errors.
  • Click to copy any value.

How to Use It — Step by Step

  1. Paste a timestamp into “Unix timestamp”. Leave Unit on Auto-detect.
  2. Choose the time zone to display — your browser's zone is preselected.
  3. Read the results: detected unit, UTC, the chosen zone with its offset, ISO formats, RFC 2822 and relative time.
  4. Click any box to copy its value.
  5. To convert a date, pick it in “Date and time”, choose the zone it belongs to and read the epoch seconds and milliseconds.

Example Conversions

TimestampUTCIST (UTC+05:30)
01970-01-01 00:00:001970-01-01 05:30:00
17000000002023-11-14 22:13:202023-11-15 03:43:20
17606800002025-10-17 05:46:402025-10-17 11:16:40
21474836472038-01-19 03:14:072038-01-19 08:44:07
41024448002100-01-01 00:00:002100-01-01 05:30:00

Notice how 1700000000 falls on 14 November in UTC but already on 15 November in India — a reminder that the same timestamp can be a different calendar date depending on the time zone.

Seconds, Milliseconds, Microseconds, Nanoseconds

UnitDigits todayTypical source
Seconds10Unix/Linux, PHP time(), MySQL UNIX_TIMESTAMP(), JWT exp/iat
Milliseconds13JavaScript Date.now(), Java System.currentTimeMillis(), many APIs
Microseconds16Python time.time_ns()/1000, PostgreSQL internals, some logs
Nanoseconds19Go time.UnixNano(), Kafka, high-resolution tracing

The digit counts apply to dates between 2001 and 2286. If you have an unusual value, choose the unit manually instead of auto-detect.

Time Zones, IST and Daylight Saving

A timestamp is the same everywhere; time zones only change how it is displayed. India Standard Time is UTC+05:30 all year and has no daylight saving. Many other zones shift by an hour in summer, so New York is UTC−05:00 in winter and UTC−04:00 in summer. The converter uses your browser's built-in IANA time-zone database, which knows these rules for past and future dates. When converting a local date back to a timestamp, it checks the offset twice so that dates on the day clocks change are handled correctly.

Date Formats Explained

  • ISO 8601 (UTC): 2025-10-17T05:46:40.000Z — the Z means UTC. Standard for APIs and JSON.
  • ISO 8601 with offset: 2025-10-17T11:16:40+05:30 — local time plus its offset.
  • RFC 2822: Fri, 17 Oct 2025 05:46:40 GMT — used in emails and HTTP headers.
  • Relative: “a year ago” — friendly for user interfaces.

When storing dates, prefer timestamps or ISO 8601 in UTC; convert to local time only when showing them to people.

Getting and Converting Timestamps in Code

  • JavaScript: Math.floor(Date.now() / 1000); new Date(ts * 1000).toISOString().
  • Python: int(time.time()); datetime.fromtimestamp(ts, tz=timezone.utc).
  • PHP: time(); date('c', $ts).
  • MySQL: UNIX_TIMESTAMP(); FROM_UNIXTIME(ts).
  • Terminal: date +%s; date -d @1760680000 (Linux) or date -r 1760680000 (macOS).

Why Does Unix Time Start in 1970?

When Unix was developed at Bell Labs around 1970, its designers needed a simple reference point for the system clock. They picked the start of 1970 in UTC — a round, recent date that fit comfortably in the integers of the time. The choice stuck as Unix and its ideas spread to Linux, macOS, Android, iOS and the web, so today almost every programming language and database understands “seconds since 1970-01-01 UTC”. Other systems use different epochs — Windows file times count 100-nanosecond intervals from 1601, and GPS time starts in 1980 — which is worth remembering when a converted date looks wildly wrong.

Timestamps in Databases and APIs

Storing time as an integer timestamp makes sorting, comparison and arithmetic trivial: subtract two timestamps to get a duration in seconds, add 86,400 for one day. Many databases also offer dedicated types — PostgreSQL timestamptz, MySQL DATETIME or TIMESTAMP, MongoDB Date — that store UTC internally and convert on output. APIs commonly send either integer timestamps (seconds or milliseconds) or ISO 8601 strings. When integrating systems, document which one you use and always state the unit; a field called created holding 1760680000000 is a classic source of confusion.

The Year 2038 Problem

Old systems store Unix time as a signed 32-bit integer, whose maximum value is 2,147,483,647 — reached at 03:14:07 UTC on 19 January 2038 (08:44:07 IST). One second later such counters wrap around to a negative number, which would be read as December 1901. Modern operating systems, databases and languages use 64-bit integers, which will not overflow for about 292 billion years, but embedded devices, old file formats and legacy databases may still need updating. Paste 2147483647 into the converter to see the exact moment.

Quick Duration Reference

DurationSeconds
1 minute60
1 hour3,600
1 day86,400
1 week604,800
30 days2,592,000
1 year (365 days)31,536,000

Add these to a timestamp to move forward in time — for example, a token issued at 1760680000 with a one-hour lifetime expires at 1760683600.

Common Uses

  • Reading timestamps in logs, database rows and API responses.
  • Checking JWT exp and iat values.
  • Converting user-friendly dates into epoch values for queries.
  • Debugging time-zone and daylight-saving bugs.
  • Scheduling and comparing events across countries.
  • Verifying that devices and servers agree on the time.
  • Working out when a cache entry, cookie or download link will expire.

Common Mistakes to Avoid

  • Mixing seconds and milliseconds — a date in 1970 or the year 57000 is the usual symptom.
  • Storing local time without a zone — always store UTC or an offset.
  • Assuming a fixed offset for zones that use daylight saving.
  • Parsing ambiguous dates like 03/04/2025 — use ISO 8601.
  • 32-bit integer columns for timestamps beyond 2038.

Troubleshooting

  • Date looks far in the future or past — set the unit manually.
  • Error message — the value must be a whole number (commas and spaces are ignored).
  • Local time looks one hour off — check the selected time zone and DST for that date.
  • Value with decimals — fractional seconds are accepted; the date is shown to the millisecond.

Quick Glossary

  • Epoch: the reference moment, 1970-01-01 00:00:00 UTC.
  • UTC: Coordinated Universal Time, the world's time standard.
  • Offset: the difference between a local time and UTC, such as +05:30.
  • IANA zone: a named time zone like Asia/Kolkata with its full history of rules.
  • ISO 8601: the international date and time format.
  • Leap second: an occasional extra second in UTC, ignored by Unix time.
  • DST: daylight saving time, when some regions move clocks forward an hour in summer.
  • RFC 2822: the date format used in email headers, such as Fri, 17 Oct 2025 05:46:40 GMT.
  • 64-bit time: timestamps stored in 64-bit integers, safe far beyond 2038.

Why Use This Timestamp Converter?

It detects units automatically, supports every time zone with correct daylight-saving rules, converts in both directions, handles nanoseconds exactly and copies any format with a click — free and private.

Unix Timestamp Converter — Key Facts

EpochSeconds since 1 January 1970 00:00:00 UTC
UnitsSeconds (10 digits), ms (13), µs (16), ns (19) — auto-detected
OutputsUTC, chosen zone with offset, ISO 8601, RFC 2822, relative
ReverseDate + time + zone → epoch seconds and milliseconds
Example1760680000 = 2025-10-17 05:46:40 UTC = 11:16:40 IST
Y20382147483647 = 2038-01-19 03:14:07 UTC (32-bit limit)

Frequently Asked Questions

What is a Unix timestamp?

A Unix timestamp (epoch time) is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is the same everywhere in the world at a given moment, which makes it ideal for storing and comparing times in software.

How do I know if a timestamp is in seconds or milliseconds?

Count the digits. Current timestamps in seconds have 10 digits (e.g. 1760680000); in milliseconds 13 digits (1760680000000). Microseconds have 16 and nanoseconds 19. The converter detects this automatically, or you can choose the unit.

How do I convert a timestamp to IST?

Paste the timestamp and choose Asia/Kolkata in the time-zone list. IST is UTC+05:30 all year, so 1760680000 (05:46:40 UTC) becomes 11:16:40 IST.

How do I get the current Unix timestamp?

It is shown live at the top of the tool and updates every second. Click the copy icon to copy it. In code: Math.floor(Date.now() / 1000) in JavaScript, time.time() in Python, or date +%s in a terminal.

What is ISO 8601?

ISO 8601 is the international date format, such as 2025-10-17T05:46:40.000Z (Z means UTC) or 2025-10-17T11:16:40+05:30 with an offset. It sorts correctly as text and is used by most APIs.

What is the Year 2038 problem?

Systems that store timestamps as signed 32-bit integers can only count up to 2147483647, which is 19 January 2038 03:14:07 UTC. After that they overflow. Modern systems use 64-bit timestamps, which last for billions of years.

Do timestamps change with daylight saving time?

No. A Unix timestamp is always UTC-based. Daylight saving only affects how it is displayed in a local time zone. The converter applies the correct DST rules for the chosen zone and date.

Can timestamps be negative?

Yes. Negative values are dates before 1970 — for example −86400 is 31 December 1969 00:00 UTC.

Why is my JavaScript date off by 1000 times?

JavaScript's Date uses milliseconds while most Unix tools and databases use seconds. Multiply seconds by 1000 before passing them to new Date(), or divide Date.now() by 1000.

Does Unix time include leap seconds?

No. Unix time treats every day as exactly 86,400 seconds, so leap seconds are not counted.

Is my data sent anywhere?

No. All conversions happen in your browser.

Is the Timestamp Converter free?

Yes. It is free, unlimited and needs no sign-up.

Turn Epoch Numbers into Real Dates!

Seconds, milliseconds and time zones handled — free and instant.

Explore More Prompt Minds Tools

Unix Timestamp Converter works great alongside our other free tools. Every Prompt Minds tool runs entirely in your browser — no sign-up, no uploads, no watermarks. Browse all free tools.

Prompt Minds AI Assistant
Namaste! How can I help you with Unix Timestamp Converter?