Timestamp Converter

Convert Unix timestamps (seconds/milliseconds) to readable dates.

Unix Timestamp (s)
-
Current Date/Time
-
Result will appear here.

πŸ“– How to Use

1
Check Current Time

The current Unix timestamp and date/time update every second at the top.

2
Enter and Convert

Paste a Unix timestamp and click πŸ”„ Convert. Seconds (10 digits) and milliseconds (13 digits) are auto-detected.

3
Use Current Time

Click ⏰ Use Current Time to instantly convert the current moment.

πŸ’‘ Tip: Unix timestamps count seconds (or milliseconds) since January 1, 1970 (UTC). Commonly used in APIs, log files, and databases.

About the Timestamp Converter

A Unix timestamp is the number of seconds that have elapsed since the Unix epoch, defined as 1970-01-01T00:00:00Z (UTC), excluding leap seconds. Because it is a single integer with no timezone, no locale, and no formatting ambiguity, it is the lingua franca for time in software — the format you will find in REST API responses, database columns, log files, message queues, and cron schedules. This converter translates a Unix timestamp into a human-readable date and back, in both directions, entirely in your browser.

How it works

The tool reads an integer and decides whether it is in seconds or milliseconds. Classic Unix time and MySQL's TIMESTAMP store seconds (a 10-digit number around 2020–2030), while JavaScript's Date.getTime() and Java's Instant use milliseconds (a 13-digit number). Feeding a 13-digit value where seconds are expected shifts the date by roughly 31,000 years, so the converter auto-detects magnitude by digit length and chooses the right unit. Internally it delegates to the browser's Date object, which represents every instant as a millisecond count from the epoch.

Two subtleties matter. First, the timestamp itself is always UTC; only the way you format it into year/month/day depends on a timezone. The same instant produces the same numeric timestamp in Seoul, London, and New York — what differs is the wall-clock string you render from it. Second, Unix time deliberately excludes leap seconds, so each UTC day is treated as exactly 86,400 seconds and the count advances linearly. The converter also accepts fractional seconds and emits ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) for round-tripping into any other system.

Common use cases

  • Decoding a 10- or 13-digit timestamp from an API response into a local time
  • Encoding a chosen date and time back into a Unix value for storage
  • Comparing two instants across timezones by their UTC timestamp
  • Debugging off-by-1000 bugs caused by mixing seconds and milliseconds
  • Generating exp or iat claims for short-lived tokens

Worked example

The Unix timestamp 1717200000 converts to the ISO 8601 instant:

2024-06-01T04:00:00.000Z

Converting it back is lossless — parsing that ISO string with the browser's Date object returns exactly 1717200000. Because the Z suffix pins the value to UTC, the round-trip is independent of the viewer's local timezone. If you instead used 1717200000000 (13 digits, milliseconds) the same logic yields the identical instant; only the assumed unit changes.

Frequently asked questions

What is a Unix timestamp?

A Unix timestamp counts the seconds that have elapsed since the Unix epoch, 1970-01-01T00:00:00Z, excluding leap seconds. It is a single integer that is timezone-independent and widely used by APIs, databases, and log files.

What is the difference between seconds and milliseconds?

Classic Unix time and MySQL store seconds (typically 10 digits around 2020–2030), while JavaScript Date.getTime and Java Instant use milliseconds (13 digits). Mixing them up shifts the date by a factor of 1000, so the tool auto-detects 10- versus 13-digit input.

Is a Unix timestamp affected by timezones?

No. The timestamp itself is always UTC-based. Only how you format it for display depends on the local timezone, so the same instant always produces the same numeric timestamp everywhere in the world.

What is the Year 2038 problem?

Signed 32-bit Unix time overflows on 2038-01-19T03:14:07Z, wrapping to a date in 1901. Systems that store time as a 64-bit integer, as JavaScript and Java do, are not affected.

Does this tool work offline?

Yes. All conversion runs in your browser through the native Date object, so timestamps are converted locally without contacting any server.

νƒ€μž„μŠ€νƒ¬ν”„ λ³€ν™˜κΈ°λž€?

Unix νƒ€μž„μŠ€νƒ¬ν”„λŠ” Unix 에포크인 1970-01-01T00:00:00Z(UTC) 이후에 κ²½κ³Όν•œ 초 μˆ˜μž…λ‹ˆλ‹€(윀초 μ œμ™Έ). 단일 μ •μˆ˜μ΄λ©° μ‹œκ°„λŒ€, 둜캘, ν˜•μ‹ λͺ¨ν˜Έμ„±μ΄ μ—†κΈ° λ•Œλ¬Έμ— μ†Œν”„νŠΈμ›¨μ–΄μ—μ„œ μ‹œκ°„μ„ ν‘œν˜„ν•˜λŠ” μ‚¬μ‹€μƒμ˜ κ³΅μš©μ–΄μž…λ‹ˆλ‹€ — REST API 응닡, λ°μ΄ν„°λ² μ΄μŠ€ 칼럼, 둜그 파일, λ©”μ‹œμ§€ 큐, cron μŠ€μΌ€μ€„μ—μ„œ ν”νžˆ λ³Ό 수 μžˆλŠ” ν˜•μ‹μž…λ‹ˆλ‹€. 이 λ³€ν™˜κΈ°λŠ” Unix νƒ€μž„μŠ€νƒ¬ν”„λ₯Ό μ‚¬λžŒμ΄ 읽을 수 μžˆλŠ” λ‚ μ§œλ‘œ, 또 κ·Έ λ°˜λŒ€λ‘œ μ–‘λ°©ν–₯ λ³€ν™˜ν•˜λ©°, λͺ¨λ“  μ²˜λ¦¬κ°€ λΈŒλΌμš°μ € μ•ˆμ—μ„œ μ΄λ£¨μ–΄μ§‘λ‹ˆλ‹€.

μž‘λ™ 방식

이 λ„κ΅¬λŠ” μ •μˆ˜λ₯Ό 읽어 초 λ‹¨μœ„μΈμ§€ λ°€λ¦¬μ΄ˆ λ‹¨μœ„μΈμ§€ νŒλ³„ν•©λ‹ˆλ‹€. 전톡적인 Unix μ‹œκ°„κ³Ό MySQL의 TIMESTAMPλŠ” 초λ₯Ό μ €μž₯ν•˜κ³ (2020~2030 λ¬΄λ ΅μ—λŠ” 10자리), JavaScript의 Date.getTime()와 Java의 InstantλŠ” λ°€λ¦¬μ΄ˆλ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€(13자리). 초λ₯Ό κΈ°λŒ€ν•˜λŠ” μžλ¦¬μ— 13자리 값을 λ„£μœΌλ©΄ λ‚ μ§œκ°€ μ•½ 31,000λ…„μ―€ μ–΄κΈ‹λ‚˜λ―€λ‘œ, λ³€ν™˜κΈ°λŠ” 자릿수 길이둜 크기λ₯Ό νŒλ³„ν•΄ μ•Œλ§žμ€ λ‹¨μœ„λ₯Ό μ„ νƒν•©λ‹ˆλ‹€. λ‚΄λΆ€μ μœΌλ‘œλŠ” 에포크 μ΄ν›„μ˜ λ°€λ¦¬μ΄ˆ 수둜 λͺ¨λ“  μˆœκ°„μ„ ν‘œν˜„ν•˜λŠ” λΈŒλΌμš°μ €μ˜ Date 객체에 μœ„μž„ν•©λ‹ˆλ‹€.

두 κ°€μ§€ μ„ΈλΆ€ 사항이 μ€‘μš”ν•©λ‹ˆλ‹€. 첫째, νƒ€μž„μŠ€νƒ¬ν”„ μžμ²΄λŠ” 항상 UTC이며, μ—°/μ›”/일둜 λ³€ν™˜ν•΄ ν‘œμ‹œν•˜λŠ” λ°©μ‹λ§Œ μ‹œκ°„λŒ€μ— 따라 λ‹¬λΌμ§‘λ‹ˆλ‹€. μ„œμšΈ, 런던, λ‰΄μš• μ–΄λ””μ„œλ“  같은 μˆœκ°„μ€ 같은 숫자 νƒ€μž„μŠ€νƒ¬ν”„λ₯Ό κ°€μ§‘λ‹ˆλ‹€ — λ‹¬λΌμ§€λŠ” 것은 κ·Έ κ°’μ—μ„œ λ Œλ”λ§ν•œ μ‹œκ³„ λ¬Έμžμ—΄λΏμž…λ‹ˆλ‹€. λ‘˜μ§Έ, Unix μ‹œκ°„μ€ μ˜λ„μ μœΌλ‘œ 윀초λ₯Ό μ œμ™Έν•˜λ―€λ‘œ, λ§€ UTC 일을 μ •ν™•νžˆ 86,400초둜 μ·¨κΈ‰ν•˜κ³  μΉ΄μš΄νŠΈκ°€ μ„ ν˜•μœΌλ‘œ μ¦κ°€ν•©λ‹ˆλ‹€. 이 λ³€ν™˜κΈ°λŠ” μ†Œμˆ˜ μ΄ˆλ„ 받아듀이고, μ–΄λ–€ λ‹€λ₯Έ μ‹œμŠ€ν…œμœΌλ‘œλ„ 되돌릴 수 μžˆλ„λ‘ ISO 8601(YYYY-MM-DDTHH:mm:ss.sssZ) ν˜•νƒœλ‘œ 좜λ ₯ν•©λ‹ˆλ‹€.

자주 μ“°λŠ” 경우

  • API μ‘λ‹΅μ˜ 10자리 λ˜λŠ” 13자리 νƒ€μž„μŠ€νƒ¬ν”„λ₯Ό 둜컬 μ‹œκ°„μœΌλ‘œ 해독
  • μ›ν•˜λŠ” λ‚ μ§œμ™€ μ‹œκ°„μ„ λ‹€μ‹œ Unix κ°’μœΌλ‘œ 인코딩해 μ €μž₯
  • UTC νƒ€μž„μŠ€νƒ¬ν”„λ‘œ μ‹œκ°„λŒ€κ°€ λ‹€λ₯Έ 두 μˆœκ°„ 비ꡐ
  • μ΄ˆμ™€ λ°€λ¦¬μ΄ˆλ₯Ό ν˜Όμš©ν•΄ λ°œμƒν•˜λŠ” 1000λ°° 였차 버그 디버깅
  • 수λͺ…이 짧은 ν† ν°μ˜ exp λ˜λŠ” iat ν΄λ ˆμž„ 생성

μ‚¬μš© 예

Unix νƒ€μž„μŠ€νƒ¬ν”„ 1717200000λŠ” λ‹€μŒ ISO 8601 μˆœκ°„μœΌλ‘œ λ³€ν™˜λ©λ‹ˆλ‹€:

2024-06-01T04:00:00.000Z

μ—­λ°©ν–₯ λ³€ν™˜μ€ λ¬΄μ†μ‹€μž…λ‹ˆλ‹€ — 이 ISO λ¬Έμžμ—΄μ„ λΈŒλΌμš°μ €μ˜ Date 객체둜 νŒŒμ‹±ν•˜λ©΄ μ •ν™•νžˆ 1717200000을 λ°˜ν™˜ν•©λ‹ˆλ‹€. Z 접미사가 값을 UTC둜 κ³ μ •ν•˜λ―€λ‘œ 이 왕볡은 λ³΄λŠ” μ‚¬λžŒμ˜ 둜컬 μ‹œκ°„λŒ€μ™€ λ¬΄κ΄€ν•©λ‹ˆλ‹€. λŒ€μ‹  1717200000000(13자리, λ°€λ¦¬μ΄ˆ)을 μ‚¬μš©ν•΄λ„ 같은 둜직으둜 λ™μΌν•œ μˆœκ°„μ΄ λ‚˜μ˜€λ©°, λ‹¬λΌμ§€λŠ” 것은 κ°€μ •ν•œ λ‹¨μœ„λΏμž…λ‹ˆλ‹€.

자주 λ¬»λŠ” 질문

Unix νƒ€μž„μŠ€νƒ¬ν”„λž€ λ¬΄μ—‡μΈκ°€μš”?

Unix νƒ€μž„μŠ€νƒ¬ν”„λŠ” Unix 에포크인 1970-01-01T00:00:00Z 이후에 κ²½κ³Όν•œ 초 μˆ˜μž…λ‹ˆλ‹€(윀초 μ œμ™Έ). μ‹œκ°„λŒ€μ— 영ν–₯을 λ°›μ§€ μ•ŠλŠ” 단일 μ •μˆ˜μ΄λ©° API, λ°μ΄ν„°λ² μ΄μŠ€, 둜그 νŒŒμΌμ—μ„œ 널리 μ‚¬μš©λ©λ‹ˆλ‹€.

μ΄ˆμ™€ λ°€λ¦¬μ΄ˆμ˜ μ°¨μ΄λŠ”?

전톡적인 Unix μ‹œκ°„κ³Ό MySQL은 초λ₯Ό μ €μž₯ν•˜κ³ (2020~2030 무렡에 보톡 10자리), JavaScript Date.getTime와 Java InstantλŠ” λ°€λ¦¬μ΄ˆλ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€(13자리). ν˜Όμš©ν•˜λ©΄ λ‚ μ§œκ°€ 1000λ°° μ–΄κΈ‹λ‚˜λ―€λ‘œ 이 λ„κ΅¬λŠ” 10μžλ¦¬μ™€ 13자리 μž…λ ₯을 μžλ™μœΌλ‘œ κ°μ§€ν•©λ‹ˆλ‹€.

Unix νƒ€μž„μŠ€νƒ¬ν”„λŠ” μ‹œκ°„λŒ€μ˜ 영ν–₯을 λ°›λ‚˜μš”?

μ•„λ‹™λ‹ˆλ‹€. νƒ€μž„μŠ€νƒ¬ν”„ μžμ²΄λŠ” 항상 UTC κΈ°μ€€μž…λ‹ˆλ‹€. ν‘œμ‹œμš©μœΌλ‘œ λ³€ν™˜ν•˜λŠ” λ°©μ‹λ§Œ 둜컬 μ‹œκ°„λŒ€μ— 따라 λ‹¬λΌμ§€λ―€λ‘œ, 같은 μˆœκ°„μ€ μ „ 세계 μ–΄λ””μ„œλ‚˜ 같은 숫자 νƒ€μž„μŠ€νƒ¬ν”„λ₯Ό κ°€μ§‘λ‹ˆλ‹€.

2038λ…„ λ¬Έμ œλž€ λ¬΄μ—‡μΈκ°€μš”?

λΆ€ν˜Έ μžˆλŠ” 32λΉ„νŠΈ Unix μ‹œκ°„μ€ 2038-01-19T03:14:07Z에 μ˜€λ²„ν”Œλ‘œλ˜μ–΄ 1901λ…„ λ‚ μ§œλ‘œ λ˜λŒμ•„κ°‘λ‹ˆλ‹€. JavaScript와 Java처럼 μ‹œκ°„μ„ 64λΉ„νŠΈ μ •μˆ˜λ‘œ μ €μž₯ν•˜λŠ” μ‹œμŠ€ν…œμ€ 영ν–₯을 λ°›μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

이 λ„κ΅¬λŠ” μ˜€ν”„λΌμΈμ—μ„œλ„ λ™μž‘ν•˜λ‚˜μš”?

λ„€. λͺ¨λ“  λ³€ν™˜μ€ λΈŒλΌμš°μ €μ—μ„œ λ„€μ΄ν‹°λΈŒ Date 객체둜 μ‹€ν–‰λ˜λ―€λ‘œ, νƒ€μž„μŠ€νƒ¬ν”„λŠ” μ„œλ²„μ™€ ν†΅μ‹ ν•˜μ§€ μ•Šκ³  λ‘œμ»¬μ—μ„œ λ³€ν™˜λ©λ‹ˆλ‹€.