← Back to Home

Import Your Data

Already tracking habits? Import your history in minutes.

Import Daily Logs

Import historical data for your habits from a CSV file. Each row represents one day's entry.

Template format

date,habit,unit,value,note
2026-01-15,Sleep,hours,7.5,
2026-01-15,Workout,minutes,45,Leg day
2026-01-16,Running,km,6.2,Morning run
2026-01-16,Water,liters,2.5,
daterequired

YYYY-MM-DD format (required). Example: 2026-03-15

habitrequired

Must match an existing habit name in the app (case-insensitive).

unit

The habit's unit — for your reference. Examples: hours, minutes, km

valuerequired

Numeric, must be 0 or greater.

note

Optional free text. Leave blank or omit entirely.

Download template (CSV)

You can use Excel, Google Sheets, or Numbers — just export as .csv or .txt.

Habit names must match exactly: 'Workout' and 'workout' both work, but 'Work out' won't match 'Workout'.

If a date + habit already exists, the import updates the existing value — not duplicates it.

You can mix multiple habits in one file.

Backup & Restore

Export your entire app data — habits and logs — as a single CSV file. Use it to restore on a new device or keep an offline backup.

How to export

  1. 1Go to Settings → Data Management
  2. 2Tap "Export Backup"
  3. 3Save or share the file

How to restore

  1. 1Go to Settings → Data Management
  2. 2Tap "Import Data"
  3. 3Select your backup file
  4. 4Choose "Merge with existing" or "Replace all data"
  5. 5Review the summary and tap Import

Backup format (simplified)

#HABITS
name,unit,icon,color,targetValue,scheduledDays,createdAt
Sleep,hours,🛏️,#39d353,8.0,,2026-04-04
Workout,minutes,💪,#f97316,45.0,"1,3,5",2026-04-04

#LOGS
date,habit,unit,value,note
2025-08-26,Sleep,hours,8.33,
2025-09-15,Workout,minutes,45,Leg day

The app auto-detects whether you're importing a backup (has #HABITS section) or just log entries. One import button handles both.

Pre-built Habits

The app comes with 9 default habits ready to track:

HabitUnitDaily Target
Sleephours8
Workoutminutes45
Meditationminutes15
Runningkm5
Calorieskcal2000
Waterliters2.5
Readingpages25
Bikingkm10
Intervalssprints6

You can also create unlimited custom habits with your own name, unit, icon, color, and schedule.

Daily Reminders

MyHabitStats can send you two daily notifications:

Morning Reminder — a summary of your scheduled habits for the day. Default: 9:00 AM.

Evening Nudge — a gentle reminder to log any habits you missed. Default: 9:00 PM.

Both are customizable in Settings → Notifications. Messages rotate daily with motivational text.

Track Pace & Speed

For habits like Running and Biking, enable "Track time" in the habit settings to log both distance and time. The app auto-calculates:

Running → Pace (min/km) — e.g. 7 km in 38 min = 5:25 min/km

Biking → Speed (km/h) — e.g. 10 km in 30 min = 20.0 km/h

In the Charts tab, switch between Distance, Pace/Speed, or Both views.

How Streaks Work

Logging a value of 0 doesn't count — you must actually do the habit.

Your value must meet the target — 2 hours of sleep (target: 8) won't count.

Streaks respect your schedule — if you work out Mon/Wed/Fri and hit all three, that's a 3-day streak. Tuesday and Thursday don't break it.

Ready to import?

Download template