Skip to content

The JinLog format

Last updated:

Version 1.0 (draft)

JinLog is a plain text format for writing down gym workouts. It is quick to type on a phone between sets, it reads without any app, and a program can reliably take the exercises, sets, weights and reps from it. It starts from the way people already write their gym notes: bench 80x8,8,7.

This page describes what a note means, so that programs other than JinLog can read it. The JinLog app is the reference implementation, and every example here is also one of its test cases. If you only want to start writing, the shorter How to write your sets is enough.

Principles

  1. Speed before precision. Nothing is required. A note that follows no rule at all is still valid; a program just reads less from it.
  2. No text is lost. A program never rewrites the text. What it does not understand stays as a note.
  3. Readable without an app. A file has to make sense in a text editor and on paper.
  4. One meaning. Every way of writing has exactly one reading. Where there could be two, a rule on this page decides, not a guess.

1. Workout

One workout is one block of text. It has a date, but in the app the date is not written in the text (it is above it). In a file with several workouts a line @ date gives it, see chapter 8.

Every line is one of these kinds:

Kind Example What it means
Title Push day The workout’s name. The first line only.
Exercise bench 80x8,8,7 An exercise’s name and its sets.
Line of sets 45x8 More sets of the exercise on the line above.
Note only slept 5 hours Text for you; it is not counted in statistics.
Empty line Nothing. It separates things.

1.1 Title

The first line that is not empty is the title when both hold:

  • the name at the start of the line is not a known exercise,
  • nothing on the line looks like sets (x, @, a unit, bw).
Workout 1, 2 rounds      ← title
Push day                 ← title
bench 80x8               ← exercise, not a title

1.2 Notes

A note is:

  • a line without numbers that is not a known exercise (felt good),
  • a line with an unknown name and one number without a way of writing sets (only slept 5 hours),
  • a line starting with a date, 3.10 - or 5. 10. 2026: (a diary kept in one note),
  • a line starting with #, and everything after a # up to the end of the line,
  • text in round brackets (…) among the sets, such as a rest (90s),
  • words among the numbers that are not a unit (rpe9, failure, left).
Push day
bench 80x8,8,7 (90s) # left shoulder
dips 12,10,8 rpe9
only slept 5 hours

→ the title “Push day”, bench with 3 sets, dips with 3 sets, the last line is a note.


2. Exercise

An exercise line has two parts: the name and the sets. The sets start at the first number that stands on its own (after a space or a colon), or at the word bw, or at the sign @.

bench 80x8,8,7
deadlift: 140x5
Farmer’s carry × 60 s
  • Between the name and the sets there may be :, - or ×. They are not part of the name.
  • The name must not contain a number standing on its own, or the sets would start there. Instead of 21s curls write twentyones curls.
  • A bullet may come before the name: -, •, * or a number with a dot or a bracket (1., 2)). The bullet is not part of the name.

2.1 One exercise, written in different ways

Names are compared without regard to capital letters, accents and punctuation. The app has a dictionary of known exercises with English and Czech names and abbreviations (bench, bp and bench press are one exercise). An unknown name is kept as written, and names written the same way belong together.

The user can extend the dictionary in the app:

  • More names for a known exercise: squats or back squat added to Squat.
  • An exercise of their own: a name, the muscles it works (main and secondary) and the names it is written by (Sandbag throw: sandbag throw, bag toss). An exercise made from an unknown name keeps that name’s history.
  • A copy of an exercise: a new exercise with the muscles of another, such as a pause squat from Squat.
  • A switched-off exercise: its names are not recognised, so in a note it shows as unknown.

The user’s names win over the built-in ones. A name is also found inside a longer one (squats finds morning squats), and a longer name wins over a shorter one. The dictionary is kept in the app and in a full backup, not in a workout’s text. The same text can therefore give different exercise names in another program.

The dictionary is not part of the format. Another program may have a different one. The format guarantees only that a name written the same way is always the same exercise.

2.2 An exercise several times in one workout

This is allowed. The sets are added up for statistics and stay apart in the note.

2.3 Sets on the lines below

A line that starts with a number belongs to the exercise right above it. There must be no note between them.

Overhead press
40x10
45x8
47.5x6

3. Sets

A set is one go at the exercise: a number of reps (or a time), a weight and possibly a distance.

3.1 Ways of writing

Written Meaning
80x8,8,7 80 kg: 8, 8 and 7 reps (3 sets)
3x5@100 3 sets of 5 reps at 100 kg
8@50 1 set, 8 reps at 50 kg
3x5 100kg the same as 3x5@100, with the weight at the end
100 5,5,4 the weight, then a list of reps
140x5x3 140 kg × 5 reps × 3 sets
3x5x120 3 sets × 5 reps × 120 kg
100x5, 110x3, 120x1 a different weight each set
12,10,8 reps only, no weight
bw+10 3x8 bodyweight + 10 kg
12+16kg 1,3,5 two different loads, 12 and 16 kg
3x60s 3 sets of 60 seconds
5km 25min a distance and a time

3.2 What stands before x: sets, or a weight?

A x B is weight × reps when any of this holds:

  • A has a unit (80kg x 8),
  • A is a decimal number (62.5x8),
  • A is a combined load (12+16kgx5),
  • A is greater than 10 (80x8).

Otherwise it is sets × reps (3x10). The weight is then taken from what was written before it on the line, or from the weight that follows (3x5 100kg).

Mind that 12x10 means 12 kg × 10, not 12 sets. For more than 10 sets write 12x10@50.

3.3 Three numbers A x B x C

The middle number is always the reps. Of the outer two, the weight is the one with a unit, and when neither has a unit, the larger one. The other outer number is the sets.

3.4 How long a weight holds

A weight holds for all the following numbers on the line, until another replaces it:

bench 100x5,5 110x3      → 100×5, 100×5, 110×3

Write a new weight in the middle of a line with x or with a unit (110x3, 110kg 3). A bare 110 in a list is read as 110 reps.

A weight is not carried over to a new line.

3.5 No weight, and bodyweight

  • 12,10,8 or bw 12,10,8: sets with no added load. Both mean the same. (vh, the Czech abbreviation, works like bw.)
  • bw+10: bodyweight plus 10 kg. Only the added load is counted in statistics.

3.6 Two different loads

12+16kg means two loads at once, such as a 12 kg kettlebell in one hand and a 16 kg one in the other. A program remembers both and uses their sum (28 kg) for charts and records. Two equal ones: 16+16kg. It works wherever a weight can stand: 12+16kg 1,3,5, 3x5@12+16kg, 12+16kgx5.

3.7 Time and distance

Unit Meaning
s, sec seconds
min minutes
h hours
m metres (not minutes!)
km kilometres

3x60s is three sets of 60 s. 5km 25min is one effort with a distance and a time. A weight may come before a time: 16kg 3x60s (a farmer’s walk).


4. Numbers and units

  • Weight: kg or lb (lbs). A number without a unit is in the unit from the metadata # Unit: (chapter 6.1), and when there is none, in the unit from the app’s settings (kg by default). In the output, weights are always in kg.
  • Decimals: a dot or a comma. A comma is a decimal one only when 1–2 digits follow it and right after them a unit, x, @ or + (62,5kg, 62,5x8, 12,5+12,5kg), or when it stands right after @ (3x12@12,5). Elsewhere a comma separates sets: 8,8,7.
  • Between sets: , ; / |. A space separates a weight from the reps (100 5,5,4): when the line has no weight yet and a number is followed by a space and another number, the first number is the weight.
  • The times sign: x, × and * are the same. Spaces around x, @ and + do not matter: 3 × 12 @ 12.5.

5. Lists and rounds

Numbered and bulleted lists work. An exercise that repeats in a workout (rounds, ladders) is written several times, or once with all its sets:

Workout 1

1. Double clean & press × 1
2. Farmer’s carry × 60 s
- Plank × 30 s

3.10 - gmb, jump rope

The same ladder 1–3–5 done twice, written shorter:

double clean & press 12+16kg 1,3,5,1,3,5

Version 1.0 has no way of its own to write rounds, supersets or circuits. See what the format does not do yet.


6. Comments

# and everything after it up to the end of the line is a comment, whether it stands at the start of a line or after the sets. A comment is shown, but it is not counted in statistics, even when it has numbers in it. Round brackets among the sets are a note as well, handy for a rest: (90s).

# the whole line is a comment: 100x5
bench 80x8 # 2 more sets 60x10
# plank 3x60s
squat 3x5@100

→ only bench 80×8 and squat 3×5 at 100 kg.

The sign # therefore must not be in an exercise’s name.

6.1 Metadata

A comment that takes a whole line and has the form # Key: value is the workout’s metadata. It is still a comment (it is not counted as sets), but a program remembers the value and shows it.

# Week: 2
# Day: 4
# Burritos: 3
# Unit: lbs
Push
bench 225x5,5,5
# rpe: 8
185x8
dips bw+45 3x8
  • The key is 1 to 3 words and starts with a letter (Week, Body weight). Capital letters do not matter; in the result it is in lower case. A longer text before the colon is an ordinary comment: # the whole line is a comment: 100x5.
  • The value is everything after the first colon, without the spaces at its ends. It is always text.
  • Metadata hold for the whole workout, wherever they stand. When a key appears several times, the last one holds.
  • A line of metadata does not end an exercise. The sets under it belong to the exercise above it (185x8 in the example belongs to the bench).
  • After the sets on the same line (bench 80x8 # rpe: 8) it is not metadata, only a comment. The exception is the length of an exercise, # time: 12min, see 6.2.

Reserved keys:

Key Values Effect
unit, units (Czech: jednotka, jednotky) kg, lb, lbs the unit of numbers without one, in the whole workout
time, duration (Czech: čas, doba, trvání, délka) a length, see 6.2 how long the whole workout took
weight, body weight, bodyweight (Czech: váha, tělesná váha, hmotnost) a number, optionally with kg or lb (82.5, 180 lb) the body weight that day; a number without a unit is in the workout’s unit

Every other key is the writer’s own. A program only stores it and shows it.

The result of the example: week: "2", day: "4", burritos: "3", unit: "lbs", rpe: "8". The bench at 225 lb is 102.06 kg, and bw+45 is bodyweight + 20.41 kg.

6.2 How long it took

The length of the whole workout is the metadata # Time: … on a line of its own. As with other metadata, it does not matter where in the note it stands, even right under an exercise.

The length of one exercise is the same key in a comment on the exercise’s line or on a line of its sets, even next to another comment separated by a semicolon. When an exercise has several times, they are added up.

Push
# Time: 1h 15min
bench 80x8,8,7 # time: 12min
squat 3x5@100 # left knee; time: 20 min
plank 3x60s

→ the workout took 75 min, the bench 12 min, the squat 20 min. The plank has only the time of its sets (3× 60 s), no length of the exercise.

A length can be written like this:

Written Meaning
75min, 75 min, 90 minutes minutes
1h 15min, 1h15, 1.5 h hours and minutes
45 a bare number is minutes
1:15, 1:15:30 h:mm, h:mm:ss
17:30-18:45 from–to by the clock; past midnight it counts into the next day

Any other value (# Time: morning) is ordinary metadata, with no length taken from it.

The length of an exercise is not a set: it is not counted in reps, volume or records. The time of a set is written among the sets (3x60s, chapter 3.7). When the app copies an exercise or a whole workout from last time, it leaves the lengths out, because they belong to that earlier workout.


7. What a program reads from a workout

The result, described in JSON:

{
  "title": "Push day",
  "exercises": [
    {
      "name": "bench",
      "sets": [
        { "reps": 8, "weight": 80, "bw": false },
        { "reps": 8, "weight": 80, "bw": false }
      ]
    }
  ]
}
Field Meaning
title the title, when there is one
date the date from the line @ date, when there is one
meta metadata from the lines # Key: value, when there are any
duration of a workout and of an exercise: how long it took, in seconds (chapter 6.2), when given
name the exercise’s name exactly as written
reps reps; null for an effort measured by time or distance
weight weight in kg; for bw+10 the added load; null without a weight
bw true only for bodyweight with an added load
loads the single loads of 12+16kg; otherwise missing
seconds time in seconds, when given
meters distance in metres, when given

8. File

Several workouts in one file (an export, a backup, writing on a computer). The encoding is UTF-8, the extension .txt. Every workout starts with a line @ date:

# my log

@ 2026-10-03
GMB Literal Immortality
jump rope

@ 2026-10-05
Workout 1, 2 rounds
double clean & press 12+16kg 1,3,5,1,3,5
farmer’s carry 12+16kg 6x60s
plank 6x30s
  • The date is YYYY-MM-DD or D. M. YYYY (@ 5. 10. 2026).
  • Text before the first @ is ignored (a description of the file, usually # comments).
  • A file without an @ line is one workout. The program that loads it gives it a date.
  • A line @ date inside a file always starts a new workout.
  • In the app, where one workout is written at a time, a line @ date sets that workout’s date. The title is then the first line under it.

9. Converting to other formats

Traindown (traindown.com/spec). JinLog can load a Traindown file. What Traindown writes into an exercise’s metadata is converted like this:

JinLog Traindown
@ 2026-10-05 @ 2026-10-05
the title the first note * …
# Week: 2 # week: 2 (Traindown writes metadata the same way)
bench 80x8,8 bench: and 80 8r 2s
12+16kg 28 and # loads: 12+16
3x60s bw 3s and # time: 60s
5km # distance: 5000m

CSV (the export for Excel): one row per set, with the columns date, exercise, muscle, set, weight_kg, reps, bodyweight, seconds, meters.


10. What the format does not do yet

Things version 1.0 leaves out on purpose. Tell me which of them you want on the ideas board:

  1. Rounds and circuits. For example ## Round 1 as a group, or x2 after a block of exercises as in Plain Text Exercise Notation.
  2. Supersets. For example + at the start of a line: the exercise is in a superset with the one above it.
  3. Ranges of reps in a plan, such as 3x8-10. Written like that, nothing is read at all for now.
  4. RPE and RIR as data, not only a note: 80x8 @rpe8.
  5. The rest between sets as data: (90s) is only a note for now.
  6. The side of the body for one-handed exercises: L 12, R 10.
  7. Failed attempts, such as 100x0 or 100xF.
  8. Body measurements (waist, chest…). Body weight is a reserved key now (6.1); measurements are plain metadata for now.

Version history

  • 1.0 (draft), 4 November 2026: the first described version. Comments are written with # (earlier //). Metadata # Key: value.