Timestamp Converter
Convert Unix timestamps (seconds/milliseconds) to readable dates.
π How to Use
The current Unix timestamp and date/time update every second at the top.
Paste a Unix timestamp and click π Convert. Seconds (10 digits) and milliseconds (13 digits) are auto-detected.
Click β° Use Current Time to instantly convert the current moment.
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
exporiatclaims 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 κ°μ²΄λ‘ μ€νλλ―λ‘, νμμ€ν¬νλ μλ²μ ν΅μ νμ§ μκ³ λ‘컬μμ λ³νλ©λλ€.