ChordPro format: every directive with an example
ChordPro is a plain text format for songs: each chord stands in square brackets right before the syllable where it changes, and lines in curly braces, the directives, hold details like title and key and mark the parts of the song. Below is every directive of the ChordPro 6 specification, each with an example.
{title: Red River Valley}
{key: D}
[D]From this valley they say you are [A7]going
Most songs need no more than these directives:
titleandartist: the head of the sheetkey,capo,tempo,time: what the band asks before the count-instart_of_verseandstart_of_chorus: the partschorus: the chorus again, without typing it twicecomment: a note like “twice” or “half time”start_of_grid: bars for an intro or a solo
Before: the ChordPro file
{title: Red River Valley} {artist: Traditional} {key: D} {capo: 2} {start_of_chorus} [D]Come and sit by my side if you [A7]love me Do not hasten to bid me [D]adieu {end_of_chorus}
After: the sheet
Red River Valley Traditional Key D · Capo 2 Chorus D A7 Come and sit by my side if you love me D Do not hasten to bid me adieu
{end_of_chorus} prints nothing. The whole song in the editor.All ChordPro directives at a glance
Status follows the spec. Current means the spec puts no limit on it. Legacy comes from the original chord program, and the spec now advises the configuration file of the program for it. Deprecated and Obsolete mean the spec advises against it. Experimental means the spec marks it as a trial. Not implemented means the spec lists it, but the reference program does not do it.
In our editor is what the sheet in our free ChordPro editor does with the example. Shown: it uses the directive. Standard names shown: meta works for title, key and the other standard details, not for names of your own. Shown as plain text: the lines appear as typed, not as a score or a block. Kept, not shown: the line stays in your file, and the sheet ignores it. One song per file and Condition ignored are explained at the directive.
Jump to: Song details Parts Comments Chords Images Pages Fonts Custom
| Directive and short form | What it does | Status | In our editor |
|---|---|---|---|
title t | Song title | Current | Shown |
subtitle st | Second line under the title | Current | Shown |
artist | Performer | Current | Shown |
composer | Who wrote the music | Current | Kept, not shown |
lyricist | Who wrote the words | Current | Kept, not shown |
arranger | Who arranged it | Current | Kept, not shown |
copyright | Copyright line | Current | Kept, not shown |
album | Album the song is on | Current | Kept, not shown |
year | Year of first release | Current | Kept, not shown |
key | Key of the song | Current | Shown |
time | Time signature | Current | Shown |
tempo | Tempo in beats per minute | Current | Shown |
duration | Length of the song | Current | Kept, not shown |
capo | Capo fret | Current | Shown |
tag | Free label for sorting | Current | Kept, not shown |
sorttitle | Title for sorting | Current | Kept, not shown |
sortartist | Artist for sorting | Current | Kept, not shown |
meta | Any detail by name | Current | Standard names shown |
start_of_verse sovend_of_verse eov | Verse | Current | Shown |
start_of_chorus socend_of_chorus eoc | Chorus | Current | Shown |
chorus | Play the chorus again | Current | Shown |
start_of_bridge sobend_of_bridge eob | Bridge | Current | Shown |
start_of_tab sotend_of_tab eot | Guitar tab, kept as typed | Current | Shown |
start_of_grid sogend_of_grid eog | Chord grid with bar lines | Current | Shown |
start_of_…end_of_… | A part with your own name | Current | Shown |
comment c | A note on the sheet | Current | Shown |
comment_italic ci | Note, once in italics | Current | Shown |
comment_box cb | Note, once in a box | Current | Shown |
highlight | Same as comment | Current | Shown |
define | Chord diagram for a chord | Current | Kept, not shown |
chord | Show a diagram right here | Current | Kept, not shown |
transpose | Transpose from here on | Current | Shown |
diagrams | Chord diagrams on or off | Legacy | Kept, not shown |
image | Picture in the song | Current | Kept, not shown |
start_of_abcend_of_abc | Notes in ABC notation | Current | Shown as plain text |
start_of_lyend_of_ly | Notes in LilyPond | Experimental | Shown as plain text |
start_of_svgend_of_svg | Drawing in SVG | Current | Shown as plain text |
start_of_textblockend_of_textblock | Text placed as a block | Current | Shown as plain text |
new_song ns | Next song in the same file | Current | One song per file |
new_page np | Start a new page | Current | Kept, not shown |
new_physical_page npp | New sheet of paper | Legacy | Kept, not shown |
column_break colb | Next column | Current | Kept, not shown |
columns col | Number of columns | Legacy | Kept, not shown |
pagetype | Paper size | Not implemented | Kept, not shown |
titles | Where the title sits | Deprecated | Kept, not shown |
grid gno_grid ng | Old switch for diagrams | Obsolete | Kept, not shown |
textfont tftextsize tstextcolour | Lyrics: font, size, colour | Current | Kept, not shown |
chordfont cfchordsize cschordcolour | Chords: font, size, colour | Current | Kept, not shown |
chorusfontchorussizechoruscolour | Chorus lyrics: font, size, colour | Current | Kept, not shown |
titlefonttitlesizetitlecolour | Title: font, size, colour | Current | Kept, not shown |
labelfontlabelsizelabelcolour | Part labels in the margin: font, size, colour | Current | Kept, not shown |
tabfonttabsizetabcolour | Tab parts: font, size, colour | Current | Kept, not shown |
gridfontgridsizegridcolour | Chord grids: font, size, colour | Current | Kept, not shown |
tocfonttocsizetoccolour | Table of contents: font, size, colour | Current | Kept, not shown |
footerfontfootersizefootercolour | Page footer: font, size, colour | Current | Kept, not shown |
x_… | Your own directive | Current | Kept, not shown |
…-instrument | Only for one instrument or voice | Current | Condition ignored |
How do I make a ChordPro file?
Any text editor will do. In our ChordPro editor you click above a word to place a chord, and it writes the brackets and directives. If you already have the song with the chords on their own line above the lyrics, paste it there, and each chord moves into the line at its syllable. For a PDF, a scan or a photo, the guide PDF to ChordPro shows which way works for which kind of file.
The basic rules of a ChordPro file
A ChordPro file has four kinds of lines: lyrics with chords, directives, empty lines, and remarks that start with #.
A chord goes in square brackets right before the syllable it belongs to: sweet [D]smile. Inside a word it splits the word: bright[G]ened. Text in brackets that starts with a star is an annotation, printed above the lyrics like a chord but treated as text, so it is not transposed: [*Coda]. Annotations came with ChordPro 6, so older programs may print the star.
A chord name is a root note like C, F# or Bb, then optionally a quality like m, an extension like 7 and a bass note after a slash: [Am7], [C/G]. Programs put whatever stands in the brackets above the syllable, but they can only transpose it and draw a diagram when they recognise it as a chord. The file may be in UTF-8, so accents and umlauts work in the lyrics; \u with four hex digits, such as \u00e9, also writes a character.
sweet [D]smile and bright[G]ened in our editor: each chord sits over the syllable it stands before, also inside a word.A directive stands alone on its line, in curly braces. The name and its value are separated by a colon, a space, or both: {title: Red River Valley}. Some take attributes in quotes, as in {start_of_verse: label="Verse 1"}, the form the spec advises. Many directives have a short form, such as {t} for {title}; the spec advises the full names.
A line that ends with a backslash continues on the next line. The spec names .cho, .crd, .chopro, .chord and .pro as file endings and advises .cho.
Song details: title, artist, key, capo, tempo
Write each on its own line near the top. {meta: name value} sets any of them, too.
title
The song title. Apps show it on top of the sheet and use it as the name in the song list. {meta: title …} means the same.
{title: Red River Valley}
subtitle
A line under the title, for a version, an arrangement or a second name.
{title: Red River Valley}
{subtitle: Slow version in 3/4}
artist
Who performs the song. For several artists, write one line each.
{artist: Traditional}
composer
Who wrote the music. One line per composer.
{composer: Jane Doe}
{composer: John Roe}
lyricist
Who wrote the lyrics. One line per lyricist.
{lyricist: Jane Doe}
arranger
Who arranged the song.
{arranger: Jane Doe}
copyright
Copyright notice, written as year and owner.
{copyright: 2026 Jane Doe}
album
An album with this song. One line per album.
{album: Songs from the Porch}
year
The year the song first came out, as four digits.
{year: 2026}
key
The key the song is written in. A second {key} further down marks a key change from that line on. With a capo, write the key of the shapes you play: {key: C} with {capo: 2} sounds in D, and %{_key} in a comment prints that sounding key (see meta).
{key: D}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
{key: E}
[E]From this valley they say you are [B7]going
time
The time signature. Like {key}, a second one applies from where it stands.
{time: 3/4}
tempo
The tempo as a plain number of beats per minute.
{tempo: 96}
duration
How long the song lasts, in seconds or as minutes and seconds. 185 and 3:05 are the same, and the reference program always shows the second form.
{duration: 3:05}
capo
The fret for the capo. The key stays the one of the shapes you play, see key.
{key: C}
{capo: 2}
subtitle stays a row in the text while you edit; the sheet prints it under the title.tag
A free label, for example the occasion or the state of the song. One line per tag.
{tag: Wedding}
{tag: Needs work}
sorttitle
How the title sorts in a songbook's table of contents. Only needed when the title would sort wrong. A song with two titles needs two sort titles in the same order.
{title: The Long Road}
{sorttitle: Long Road, The}
sortartist
How the artist sorts in a table of contents, one per {artist}, in the same order.
{artist: Jane Doe}
{sortartist: Doe, Jane}
meta
Sets any detail by name: one word, underscores allowed, then the value. {meta: key D} equals {key: D}. Any detail can go into a comment or header as %{name}, and %{capo|Capo %{}} prints only when the song has a capo. Our editor does not fill these in and shows the line as typed.
{meta: key D}
{meta: source Camp songbook, page 12}
{comment: From %{source}}
Parts of a song: verse, chorus, bridge, tab, grid
A verse, a chorus or another section starts with start_of_ and ends with end_of_ plus the name, both on lines of their own. Every part can carry a label, and \n in a label starts a second line.
start_of_verse, end_of_verse
Marks a verse. A label names it on the sheet; label="Verse 1" is the form the spec advises, {start_of_verse: Verse 1} still works.
{start_of_verse: label="Verse 1"}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
{end_of_verse}
start_of_chorus, end_of_chorus
Marks the chorus.
{start_of_chorus}
[D]Come and sit by my side if you [A7]love me
{end_of_chorus}
chorus
Repeats the last chorus above this line, without writing it out again. A label like {chorus: Final} names it.
{start_of_chorus}
[D]Come and sit by my side if you [A7]love me
{end_of_chorus}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
{chorus: Final}
{chorus: Final} in the phone preview of our editor: the chorus comes back under the label Final.start_of_bridge, end_of_bridge
Marks a bridge, with an optional label.
{start_of_bridge: Bridge}
[G]Think of the valley you're [D]leaving
{end_of_bridge}
start_of_tab, end_of_tab
Lines in a tab part stay exactly as typed, not wrapped or changed. Directives inside it are plain text, except the end of the tab.
{start_of_tab: Riff}
e|-----0-----|
B|---3---3---|
G|-2-------2-|
{end_of_tab}
start_of_grid, end_of_grid
A grid of chords without lyrics, in bars. shape="4x4" means 4 bars of 4 beats per row; 1+4x4+1 adds a cell for notes left and right. A dot marks an empty cell, a slash / a cell where the chord is played again, ~ puts two chords in one cell, % repeats the bar before and %% the two bars before. Bar lines: |, ||, |. for the end, |: and :| for repeats, |1 and :|2 for first and second endings. Text after the last bar line goes into the right margin. A row starting with |s or |S holds strum arrows (dn, up) instead of chords.
{start_of_grid: shape="4x3" label="Intro"}
| D . . | % . . | A7 . . | D . . | x2
{end_of_grid}
start_of_…, end_of_…
Any name of letters, digits and underscores makes a part, such as an intro or outro. Programs that don't know the name treat the lines as lyrics.
{start_of_intro}
[D] [G] [A7] [D]
{end_of_intro}
Comments and notes for the player
comment
A line of text that is not lyrics: a playing note or a part name. The spec leaves the look to the program.
{comment: Let it ring, half time}
comment_italic
Like {comment}; the original program set it in italics.
{comment_italic: Soft, fingers only}
comment_box
Like {comment}; the original program drew a box around it. Its short form cb clashes, see short forms.
{comment_box: Key change!}
highlight
Another name for {comment}.
{highlight: Everyone sings}
Chord diagrams and transposing
define
Defines how to play a chord, for its diagram. For strings: base-fret is the fret of the top row (1 or higher), then one value per string from low to high, x for a muted string and 0 for an open one, optionally followed by fingers. For keyboards: keys and the notes counted in semitones from the root, 0 4 7 for a major chord. copy takes the shape of a known chord, display changes the shown name.
{define: C7 base-fret 1 frets x 3 2 3 1 0}
{define: D7 base-fret 3 frets x 3 2 3 1 x fingers 0 3 2 4 1 0}
{define: D keys 0 4 7}
chord
Like define, but shows the diagram at this spot in the song. A known chord needs only its name.
{chord: Am}
{chord: D7 base-fret 3 frets x 3 2 3 1 x}
transpose
Moves every chord after this line by the given number of semitones. At the top it transposes the whole song, in the middle it makes a key change. Up uses sharps, down uses flats; 2f or 2s chooses. An empty {transpose} ends it. A {key} above it stays as written. Our editor takes whole numbers only, without f or s.
[D]From this valley they say you are [A7]going
{transpose: 2}
[D]From this valley they say you are [A7]going
{transpose: 2}: D becomes E and A7 becomes B7.diagrams
Turns the chord diagrams for this song on or off, or moves them: bottom (default), top, right, below. The spec lists it with the directives from the old chord program and advises settings files for steady use.
{diagrams: off}
Images and music notation
image places a picture file. The four parts after it work differently: abc, LilyPond and SVG turn notes or a drawing written into the song into an image, and a text block places lines of text the same way. The spec calls these four delegated environments and says not every program has them.
image
Places an image file, for example a score snippet. PNG, JPG and GIF should work. Put the file next to the song; paths like images/riff.png may fail. Options include width, height, scale, align, border, href and anchor to pin it to the page. id loads an image once to reuse it.
{image: src="riff.png" width="300" align="left"}
start_of_abc, end_of_abc
Music in ABC notation, turned into a score image. Start with X:1, give a key with K: and leave an empty line before the end. {transpose} moves these notes too.
{start_of_abc: label="Riff"}
X:1
M:3/4
L:1/4
K:D
A | d2 c | B A F |
{end_of_abc}
start_of_ly, end_of_ly
Music in LilyPond, turned into one score image. The spec marks it experimental, and {transpose} does not move these notes.
{start_of_ly}
\relative { d'4 fis a d }
{end_of_ly}
start_of_svg, end_of_svg
An SVG drawing written into the song, placed like an image.
{start_of_svg}
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8"/></svg>
{end_of_svg}
start_of_textblock, end_of_textblock
Lines of text joined into one block that can be placed like an image, for example on the right next to the lyrics. It takes the same options as image, such as align, and also flush for the text inside the block, width, padding and background.
{start_of_textblock: align="right" flush="right"}
Last verse slower
then stop on D
{end_of_textblock}
Songbooks, pages and columns
new_song
Ends one song and starts the next, so one file can hold a whole songbook. toc=no keeps the song out of the table of contents. Our editor holds one song at a time and runs the parts together; open such a file song by song.
{title: Red River Valley}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
{new_song}
{title: Shenandoah}
[G]Oh Shenandoah, I long to [C]hear you
new_page
Starts a new page at this line.
{new_page}
new_physical_page
From the original program, which printed several pages on one sheet. The reference program no longer does that.
{new_physical_page}
column_break
Continues in the next column, or on a new page from the last column. The overview of the spec gives colb as short form, its own page and the cheat sheet say cb.
{columns: 2}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
{column_break}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
columns
Sets the song in this many columns. Listed with the old directives.
{columns: 2}
pagetype
Was meant for a4 or letter. The spec says it is not implemented; paper size is a setting.
{pagetype: a4}
titles
left, right or center for the title. Deprecated in favour of settings files.
{titles: left}
grid, no_grid
Old names for {diagrams} and {diagrams: off}. They have nothing to do with chord grids, see start_of_grid.
{no_grid}
Fonts, sizes and colours
These directives change the look of the lines that follow, and for lyrics and chords the same directive without a value sets it back. A font is a known font name or a font file, a size is a number like 12 or a percentage like 120%, a colour is a name or a code like #4491ff. {textfont: sans 13} sets font and size in one go. Set the text colour before the chorus colour; the text colour overwrites a chorus colour set earlier.
{textfont: sans 13}
{textcolour: #4491ff}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
{textfont}
{textcolour}
| Applies to | Font | Size | Colour |
|---|---|---|---|
| Lyrics | textfont (tf) | textsize (ts) | textcolour |
| Chords | chordfont (cf) | chordsize (cs) | chordcolour |
| Chorus lyrics | chorusfont | chorussize | choruscolour |
| Title | titlefont | titlesize | titlecolour |
| Part labels in the margin | labelfont | labelsize | labelcolour |
| Tab parts | tabfont | tabsize | tabcolour |
| Chord grids | gridfont | gridsize | gridcolour |
| Table of contents | tocfont | tocsize | toccolour |
| Page footer | footerfont | footersize | footercolour |
Our editor keeps these lines in the file and sets the sheet in its own style.
Your own directives and instrument conditions
x_…
A directive whose name starts with x_ belongs to one app. Every other program skips it without a warning. The spec advises a tag for the app after x_.
{x_myapp_pedal: next_page}
…-instrument
A dash and a name after any directive make it conditional. The program reads the name first as an instrument ({define-ukulele: …}), then as a user name from its configuration file ({comment-anna: …}), then as a song detail: {comment-capo: …} prints only when the song has a capo. A ! after the name turns it around: {comment-guitar!: …} is for everyone except guitar. A part with a condition ends without it. Our editor ignores the condition.
{define-ukulele: Am base-fret 1 frets 2 0 0 0}
{comment-anna: Anna counts in}
{comment-capo: Capo on}
{comment-guitar!: Keys and bass come in here}
{start_of_verse-guitar}
[D]From this valley they say you are [A7]going
We will miss your bright eyes and sweet [D]smile
{end_of_verse}
x_ directive in the editing view of our editor: the lines stay in your file, and the printed sheet ignores them.Directives you may see that are not in the spec
The manual of one setlist app, which we leave unnamed here, lists directives that the spec does not define, without the x_ prefix it asks for. A program that sticks to the spec does not know them.
| In that app's manual | Meaning | In the spec |
|---|---|---|
{su: …} | Subtitle | {subtitle}, short st |
{pagebreak} | New page when printing | {new_page} |
{soh} … {eoh} | Highlight a passage in colour | no directive; {textcolour} changes the colour of the lyrics |
{pause: 10}, {scrollspeed: 7} | Control auto scroll in one app | none; such settings belong in an x_ directive |
Short forms that clash
cb stands for two directives. The page on comment_box and the overview of the spec give it to the comment in a box. The page on column_break and the cheat sheet give it to the column break as well, while the overview lists colb for that. Write {comment_box: …} and {column_break} in full. Our editor reads {cb: text} as a comment and {cb} without text as a column break, which it skips.
How we checked this reference
On 23 November 2026 we went through the directives overview of the ChordPro specification, each directive page and the cheat sheet of the spec. The newest version of the reference program on that day was 6.101, released on 30 April 2026. The status column quotes the spec, and the examples follow its syntax.
Then, on 26 November 2026, we opened every example in our ChordPro editor and noted what the preview shows. Gigproof, our setlist app for iPhone and iPad, is not in the App Store yet. Once it is, it will handle each directive the way the editor does; the guide to the app has its own table.
If you find a mistake, write to info@sonua.io.
Questions about the ChordPro format
How is ChordPro different from chords above the lyrics?
Above the lyrics, each chord sits on its own line and spaces keep it over the right word. In ChordPro the chord stands inside the lyric line, so it stays on its syllable when the line wraps on a phone or the font changes. Paste a song with chords above the lyrics into our editor and it turns into ChordPro.
What is the difference between {comment} and a line with #?
{comment} prints on the sheet. A line that starts with # never prints; it is a note for whoever edits the file.
Is ChordPro free to use?
Yes. The spec is published openly on chordpro.org, and the reference program is open source: it costs nothing to download and use.
Where can I find songs in ChordPro?
Most songs are under copyright, so we do not publish them. Public domain songs are different: our chord sheets have Christmas carols and Auld Lang Syne with our own chords, and each one opens in the editor as ChordPro. Any other chord sheet you are allowed to use turns into ChordPro there too: copied from a chord website or from a PDF, scan or photo.