Logfmt timestamp converter

Extract timestamps from key=value logs and convert them to UTC. Download a CSV with line numbers and conversion results. Your log stays in your browser.

Read a timestamp field

Use up to 5,000 lines and 1 MiB of UTF-8 text. The CSV includes only line numbers, units, UTC timestamps and statuses.

Choose the timestamp field from your logs

Logfmt puts space-separated key=value pairs on each line. Double-quote values that contain spaces. Use the exact field name, such as ts or @timestamp. A field written inside a quoted message is part of that message. Grafana’s logfmt examples

Choose the Unix unit if your log source defines it. For example, CloudWatch’s NDJSON endpoint uses milliseconds, while OpenTelemetry’s log timestamp uses nanoseconds. For ISO dates, include seconds and a UTC offset or Z. CloudWatch timestamp format · OpenTelemetry timestamp field

For example, level=info ts=1735689600123 in milliseconds becomes 2025-01-01T00:00:00.123Z.

The CSV leaves out the original log text. It identifies missing, repeated or invalid timestamps by their original line number, so you can find them in your local file.

Use the JSON and JSON Lines converter for structured JSON or the CSV timestamp converter for spreadsheet columns.

Related Tools

More free tools for developers debugging timestamps, schedules, and text changes.