Bring your sleep diary from a spreadsheet
Already tracking your nights? Import a CSV and see your own diary without retyping it. No account is required.
Prepare your spreadsheet
- Make a copy of your sheet. Download the small fictional CSV example to see the format.
- Rename and reorder the first seven columns exactly as listed below. Add empty columns for values you did not record. For example, rename “Night” to “date”, “Sleep time” to “bedtime”, and “Rested” to “rating”. Convert ratings to the 1–5 scale.
- After caffeine, place any habit columns using your habit names as headers. Use exactly yes or no; blank means unknown. End with a notes column (up to 5,000 characters). No habit columns are required.
- Export as UTF-8, comma-separated CSV with a header row. Your spreadsheet will quote commas, quotes and multiline notes. XLSX, semicolon-delimited files and other headers are unsupported.
- Choose the file in the app, inspect the preview, then explicitly confirm. If there are errors, cancel, fix the indicated CSV rows and try again.
| Column, in order | Value |
|---|---|
date | Required evening date: YYYY-MM-DD. |
bedtime | Optional 24-hour HH:MM. |
waketime | Optional 24-hour HH:MM the next morning. |
rating | Optional integer 1–5 (not rested to very rested). |
screens_off | Optional 24-hour HH:MM. |
screen_note | Optional text, up to 500 characters. |
caffeine | Optional HH:MM description entries separated by semicolon and space; descriptions up to 60 characters. |
your habit names (optional) | yes, no or blank. Up to 50 unique labels of at most 80 characters; matching ignores case and surrounding/repeated spaces. |
notes | Optional text, up to 5,000 characters. This must be the last column. |
Limits: 2 MiB and 1,000 nights per file, with at most 1 MiB of expanded diary values. Split larger files; each row supports up to 130 caffeine entries. Dates must be real calendar dates, one row per evening date. Dates identify the evening, even when bedtime is after midnight. Row numbers include the header and treat a quoted multiline note as one row.
bedlog’s own CSV exports use this format. Its spreadsheet safety apostrophe before formula-like text is kept as literal text on import. Imported strings are always text. For a readable page rather than a CSV, print a two-week diary summary.
Preview first, keep your existing nights
The preview shows valid nights, date range, habits to add, row errors and existing dates. Errors block confirmation. Only new dates are added; existing nights are skipped in full. Notes are never overwritten and habits are never deleted. Existing habit names are reused, including hidden habits, which stay hidden. A repeated upload adds no duplicate nights or habits. Explicit no values remain distinct from blanks.
File parsing and preview stay on your device. Confirmed imports use the normal diary store and sync for signed-in users. If another device records the same date before sync, the account’s existing night wins; your import cannot overwrite it. Result counts describe nights added in this browser. Guest data stays in this browser, so use the same browser and device; clearing browser data removes it. You can create an account after importing to sync across devices.
Open each imported night from the result, or visit Patterns. Patterns compare the last four weeks and need at least three rated nights with and three without a habit. Older nights remain in your diary. Comparisons are habit tracking, not medical advice or proof of cause.