Toolivaro

無料のUnix タイムスタンプ変換

Unix 秒、Unix ミリ秒、ISO 8601、人間が読めるローカル時刻の間を相互変換します。ライブ表示で、完全にローカルで動作します。

Unix タイムスタンプコンバーターは、開発者が実際に直面する形式の間を変換します。Unix 秒(10 桁)、Unix ミリ秒(13 桁)、ISO 8601 文字列、そして普通のカレンダー日付です。いずれかの形式を入力または貼り付けると、他のすべての表現(Unix 秒、Unix ミリ秒、ISO 8601 の UTC 文字列、カレンダー日付、同じ瞬間をローカルタイムゾーンと UTC で表示したもの)が同時に埋まります。1970 年より前の日付(負のタイムスタンプ)も正しく処理され、ISO 文字列のタイムゾーンオフセットも尊重され、あいまいな入力は黙って推測する代わりに明確な説明が表示されます。解析とフォーマットにはすべてプラットフォームの Date と Intl の仕組みを使うため、ここに表示される数値は、ご自身の JavaScript 環境が計算する数値とまったく同じです。このツールが約束するのはエンジンとの忠実性であり、並行実装ではありません。すべてブラウザ内のローカルで動作し、入力した内容がアップロードされたり、ログに記録されたり、保存されたりすることはありません。ログ行に 13 桁の値があり、それが実際にいつなのか知りたいとき、API が Unix 秒を期待するのにデータベースがミリ秒を保存しているとき、バグ報告で別のタイムゾーンのタイムスタンプが渡されたときにご利用ください。

ブラウザ内でローカル処理されます

この計算機の使い方

What a Unix timestamp is, and why there are two of them

Unix time counts the seconds since 1970-01-01T00:00:00Z — the epoch — and it is deliberately time-zone-free: the same instant has the same timestamp everywhere on the planet. The confusion starts with scale: the classic 10-digit value is Unix seconds, the number you see in command-line tools, log lines, and most APIs. The 13-digit value is Unix milliseconds, the native form of many databases and of JavaScript’s Date — which stores milliseconds since the epoch and is what the platform returns from Date.now(). The converter detects which you pasted from the digit count and renders every other form at once, so a 13-digit log value that looks like a date in the far future is read correctly instead of misparsed as seconds.

Both forms describe the same instant, which is why the tool always shows seconds and milliseconds side by side: mixing them up is one of the most common timestamp bugs in real systems, and the two-column output makes the mismatch visible immediately. If the seconds column and the milliseconds column disagree about what the time is, the input was the wrong one of the two — read the pair, don’t trust one number alone.

Reading log lines and API values

A log line such as 1761330600000 arrives from a service you do not control. Paste it as-is: the converter detects the 13 digits, reads the value as Unix milliseconds, and reports Unix seconds 1761330600, the ISO 8601 string 2025-10-24T19:50:00.000Z, and the same instant in your local time zone. That last rendering is the one that matters when the log came from a server in another region: the instant is the same everywhere, but 19:50 UTC is a different clock time in Tokyo than it is in Paris, and the tool shows both so the value is never misread as local time.

The converter is also the fastest way to sanity-check an API contract. When an endpoint documentation says the field is Unix seconds but the payload shows a 13-digit value, the discrepancy is visible in one paste — the conversion back to seconds shows whether the number plausibly matches the documented era. The tool accepts negative timestamps for pre-1970 dates (the epoch is a reference point, not a lower bound), and it honors the time-zone offset inside an ISO 8601 string, so 2025-10-24T21:50:00+02:00 and 2025-10-24T19:50:00Z convert to the same timestamp.

Going from a date to a timestamp

In the other direction, type or paste a calendar date and the converter returns the Unix seconds and milliseconds for that instant, using your local time zone unless the input itself carries an offset. This is the direction to check before you write code that needs a hard-coded deadline, a scheduled job, or an expiry: the value you compute here is exactly what new Date(...).getTime() ÷ 1000 will produce in the browser, because the tool uses the platform’s own Date and Intl machinery rather than a parallel implementation. That engine-fidelity promise cuts both ways: what you see here is what your runtime computes, including any quirks in how lenient date strings are parsed, so ISO 8601 and numeric inputs are the reliable forms and the tool says so in its limitations.

The limits of the format

A Unix timestamp describes an instant — it says nothing about calendar arithmetic, time-zone abbreviations, or rules like daylight saving. Converting between instants is what the epoch is for; figuring out "9am in the meeting organizer’s time zone" is a different problem, and the converter does not pretend to solve it. Values far outside the platform’s safe range are rejected with a clear error rather than wrapped, and the tool is deliberately local: timestamps from logs and bug reports often sit inside sensitive data, and nothing you paste here is uploaded, logged, or stored.

結果はどうやって計算されるの?

ログ行にあった 13 桁の値

ログ行に 1761330600000 が含まれています。コンバーターは 13 桁を検出して Unix ミリ秒として解釈し、Unix 秒 1761330600、ISO 2025-10-24T19:50:00.000Z、そして同じ瞬間をローカルタイムゾーンで表示したものを報告します。

入力と出力の例
入力
value 1761330600000
結果 2025-10-24T19:50:00.000Z ・ Unix 秒 1761330600 ・ ローカル時刻を表示

計算式と前提は?

Unix 時間

unixSeconds = milliseconds ÷ 1000 (from 1970-01-01T00:00:00Z)

計算式の記号
記号 意味
unixSeconds Unix エポック(UTC)からの秒数(整数)
milliseconds プラットフォームの Date 値(ミリ秒単位)

10 桁の入力は秒、13 桁の入力はミリ秒です。このツールは両方を検出します。

ISO 8601 / RFC 3339

iso = date.toISOString()

計算式の記号
記号 意味
toISOString YYYY-MM-DDTHH:mm:ss.sssZ 形式の UTC 表示

ローカル時刻の表示は Intl を介して閲覧者のシステムタイムゾーンを使います。

よくある間違いは?

  • 10 桁の秒と 13 桁のミリ秒を取り違えること。タイムスタンプバグの中で最も多いものです。
  • 別のタイムゾーンから来た値を、UTC をローカル時刻として(またはその逆で)読むこと。
  • エポックがローカルの深夜 0 時から始まると思うこと。エポックは 1970-01-01T00:00:00Z であり、ローカルの深夜ではありません。
  • タイムスタンプをアップロードする Web の変換ツールに貼り付けること。このツールは完全にローカルで動作します。

前提と制限は?

  • 解析はプラットフォームの Date の仕組みを使います。安全な整数の範囲を超える日付や、プラットフォームの対応範囲を大きく外れた日付は、明確なエラーで拒否されます。
  • 非常に寛容な日付文字列は環境によって解析結果が異なることがあります。ISO 8601 と数値入力が信頼できる形式です。
  • このツールは瞬間を変換するもので、タイムゾーンの略称や暦の算術を解釈するものではありません。

数値の出典は?

最終確認 2026年8月5日 · バージョン 1.0.0 · Toolivaro 外部コンテンツを保証するものではありません。

よくある質問

10 桁と 13 桁の違いは何ですか?

Unix 秒は古典的な 10 桁のエポック値です。一方、現代の多くのシステムやデータベースは 13 桁の Unix ミリ秒を保存します。この 2 つを取り違えるのはタイムスタンプバグの中で最も多いもののひとつですが、このツールは桁数を検出して対応する変換を行い、出力に両方の形式が表示されるので見つけられます。

ローカル時刻が UTC と違うのはなぜですか?

Unix タイムスタンプはどこでも同じ瞬間を表し、ローカル表示はシステムのタイムゾーンを適用します。このツールは UTC とローカルの両方の形式を表示するため、別のタイムゾーンのタイムスタンプを取り違えることがありません。

1970 年より前の日付も扱えますか?

はい。負の Unix 秒(たとえば 1969-12-31 にあたる -86400)も正しく解析・表示されます。このツールはエポックを下限とみなしません。

Why does the ISO output end in Z, and what does it mean?

The Z marks UTC — the instant expressed in the universal time zone, with no offset applied. The local rendering next to it shows the same instant in your system’s zone; the two describe one moment, which is exactly the point of the side-by-side view.

What is the largest date the converter accepts?

The platform’s Date machinery covers roughly ±100 million days from the epoch — effectively any real-world timestamp. Values beyond that range are rejected with a clear error instead of being wrapped around or silently misread.

このコレクションの一部 時間・日付・スケジュールツール

間違いを見つけましたか? 報告する — すべての修正を確認します.

このツールは役に立ちましたか?

Toolivaro編集チームが当社の方法論に基づいてレビュー済み 計算方法 · 編集方針