Gigproof

ChordPro format: every directive with an example

Checked against the ChordPro 6 specification, reference program 6.101

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:

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
The chorus of Red River Valley as a file and as a sheet. {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 formWhat it doesStatusIn our editor
title tSong titleCurrentShown
subtitle stSecond line under the titleCurrentShown
artistPerformerCurrentShown
composerWho wrote the musicCurrentKept, not shown
lyricistWho wrote the wordsCurrentKept, not shown
arrangerWho arranged itCurrentKept, not shown
copyrightCopyright lineCurrentKept, not shown
albumAlbum the song is onCurrentKept, not shown
yearYear of first releaseCurrentKept, not shown
keyKey of the songCurrentShown
timeTime signatureCurrentShown
tempoTempo in beats per minuteCurrentShown
durationLength of the songCurrentKept, not shown
capoCapo fretCurrentShown
tagFree label for sortingCurrentKept, not shown
sorttitleTitle for sortingCurrentKept, not shown
sortartistArtist for sortingCurrentKept, not shown
metaAny detail by nameCurrentStandard names shown
start_of_verse sov
end_of_verse eov
VerseCurrentShown
start_of_chorus soc
end_of_chorus eoc
ChorusCurrentShown
chorusPlay the chorus againCurrentShown
start_of_bridge sob
end_of_bridge eob
BridgeCurrentShown
start_of_tab sot
end_of_tab eot
Guitar tab, kept as typedCurrentShown
start_of_grid sog
end_of_grid eog
Chord grid with bar linesCurrentShown
start_of_…
end_of_…
A part with your own nameCurrentShown
comment cA note on the sheetCurrentShown
comment_italic ciNote, once in italicsCurrentShown
comment_box cbNote, once in a boxCurrentShown
highlightSame as commentCurrentShown
defineChord diagram for a chordCurrentKept, not shown
chordShow a diagram right hereCurrentKept, not shown
transposeTranspose from here onCurrentShown
diagramsChord diagrams on or offLegacyKept, not shown
imagePicture in the songCurrentKept, not shown
start_of_abc
end_of_abc
Notes in ABC notationCurrentShown as plain text
start_of_ly
end_of_ly
Notes in LilyPondExperimentalShown as plain text
start_of_svg
end_of_svg
Drawing in SVGCurrentShown as plain text
start_of_textblock
end_of_textblock
Text placed as a blockCurrentShown as plain text
new_song nsNext song in the same fileCurrentOne song per file
new_page npStart a new pageCurrentKept, not shown
new_physical_page nppNew sheet of paperLegacyKept, not shown
column_break colbNext columnCurrentKept, not shown
columns colNumber of columnsLegacyKept, not shown
pagetypePaper sizeNot implementedKept, not shown
titlesWhere the title sitsDeprecatedKept, not shown
grid g
no_grid ng
Old switch for diagramsObsoleteKept, not shown
textfont tf
textsize ts
textcolour
Lyrics: font, size, colourCurrentKept, not shown
chordfont cf
chordsize cs
chordcolour
Chords: font, size, colourCurrentKept, not shown
chorusfont
chorussize
choruscolour
Chorus lyrics: font, size, colourCurrentKept, not shown
titlefont
titlesize
titlecolour
Title: font, size, colourCurrentKept, not shown
labelfont
labelsize
labelcolour
Part labels in the margin: font, size, colourCurrentKept, not shown
tabfont
tabsize
tabcolour
Tab parts: font, size, colourCurrentKept, not shown
gridfont
gridsize
gridcolour
Chord grids: font, size, colourCurrentKept, not shown
tocfont
tocsize
toccolour
Table of contents: font, size, colourCurrentKept, not shown
footerfont
footersize
footercolour
Page footer: font, size, colourCurrentKept, not shown
x_…Your own directiveCurrentKept, not shown
…-instrumentOnly for one instrument or voiceCurrentCondition 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.

Phone preview in the editor: Red River Valley by Traditional, Key D, Capo 2, 3/4, then Verse 1 and the Chorus with chords above the lyrics, and the note Slower on the last chorus.
The whole Red River Valley file in the phone preview of our editor.

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.

The editor with two lines of Red River Valley: D above the s of smile, and G above the e in the middle of brightened.
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

short t · in the spec

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

short st · in the spec

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

in the spec

Who performs the song. For several artists, write one line each.

{artist: Traditional}

composer

in the spec

Who wrote the music. One line per composer.

{composer: Jane Doe}
{composer: John Roe}

lyricist

in the spec

Who wrote the lyrics. One line per lyricist.

{lyricist: Jane Doe}

arranger

in the spec

Who arranged the song.

{arranger: Jane Doe}

in the spec

Copyright notice, written as year and owner.

{copyright: 2026 Jane Doe}

album

in the spec

An album with this song. One line per album.

{album: Songs from the Porch}

year

in the spec

The year the song first came out, as four digits.

{year: 2026}
The editing view of the editor with composer, lyricist, copyright, album and year: each shows as a grey row with its value under the head, which has only the title and the artist.
Composer, lyricist, copyright, album and year in the editing view of our editor: they stay in your file as rows like these, but the printed sheet leaves them out.

key

in the spec

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

in the spec

The time signature. Like {key}, a second one applies from where it stands.

{time: 3/4}

tempo

in the spec

The tempo as a plain number of beats per minute.

{tempo: 96}

duration

in the spec

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

in the spec

The fret for the capo. The key stays the one of the shapes you play, see key.

{key: C}
{capo: 2}
The head of the sheet in the editor: Red River Valley, Traditional, and the tags Key D, 96 BPM, 3/4 and Capo 2. Below it a row reads subtitle: Slow version in 3/4.
Title, artist, key, tempo, time and capo in the editing view of our editor, not the printed sheet: they go into the head. subtitle stays a row in the text while you edit; the sheet prints it under the title.

tag

in the spec

A free label, for example the occasion or the state of the song. One line per tag.

{tag: Wedding}
{tag: Needs work}

sorttitle

in the spec

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

in the spec

How the artist sorts in a table of contents, one per {artist}, in the same order.

{artist: Jane Doe}
{sortartist: Doe, Jane}

meta

in the spec

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

short sov, eov · in the spec

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

short soc, eoc · in the spec

Marks the chorus.

{start_of_chorus}
[D]Come and sit by my side if you [A7]love me
{end_of_chorus}

chorus

in the spec

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}
Phone preview of a song: a Chorus with one line, a verse, and the same chorus line again under the label Final.
{chorus: Final} in the phone preview of our editor: the chorus comes back under the label Final.

start_of_bridge, end_of_bridge

short sob, eob · in the spec

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

short sot, eot · in the spec

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

short sog, eog · in the spec

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}
Phone preview: an Intro grid with four bars D, repeat sign, A7, D and x2 below it, then a Riff part with three lines of guitar tab.
A grid and a tab in the phone preview: the grid becomes bars with chords, the tab stays in a fixed-width font. Our editor puts the margin note x2 under the row, not on the right.

start_of_…, end_of_…

in the spec

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

short c · in the spec

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

short ci · in the spec

Like {comment}; the original program set it in italics.

{comment_italic: Soft, fingers only}

comment_box

short cb · in the spec

Like {comment}; the original program drew a box around it. Its short form cb clashes, see short forms.

{comment_box: Key change!}

highlight

in the spec

Another name for {comment}.

{highlight: Everyone sings}
Phone preview: four comment lines in italics, Let it ring half time, Soft fingers only, Key change, Everyone sings, above a line with chords.
The four comment directives in the phone preview of our editor. It sets all of them as italic notes.

Chord diagrams and transposing

define

in the spec

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

in the spec

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

in the spec

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
Phone preview: the same line twice, first with the chords D and A7, then after transpose 2 with E and B7.
The same line before and after {transpose: 2}: D becomes E and A7 becomes B7.

diagrams

Legacy · in the spec

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

in the spec

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

in the spec

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

Experimental · in the spec

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

in the spec

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

in the spec

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}
Phone preview: two lines with chords, then the label Textblock and the lines Last verse slower and then stop on D, aligned left.
A text block in the phone preview of our editor: it prints the lines as plain text under the label Textblock, aligned left.

Songbooks, pages and columns

new_song

short ns · in the spec

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

short np · in the spec

Starts a new page at this line.

{new_page}

new_physical_page

short npp · Legacy · in the spec

From the original program, which printed several pages on one sheet. The reference program no longer does that.

{new_physical_page}

column_break

short colb · in the spec

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

short col · Legacy · in the spec

Sets the song in this many columns. Listed with the old directives.

{columns: 2}
One song printed from the editor in four ways, side by side: lead sheet, compact in two columns, large print, and a chord chart without lyrics.
Our editor ignores the page directives and lays out the PDF itself. Here its sample song, Harbour Lights, as lead sheet, in two columns, in large print and as a chord chart.

pagetype

Not implemented · in the spec

Was meant for a4 or letter. The spec says it is not implemented; paper size is a setting.

{pagetype: a4}

titles

Deprecated · in the spec

left, right or center for the title. Deprecated in favour of settings files.

{titles: left}

grid, no_grid

short g, ng · Obsolete · in the spec

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 toFontSizeColour
Lyricstextfont (tf)textsize (ts)textcolour
Chordschordfont (cf)chordsize (cs)chordcolour
Chorus lyricschorusfontchorussizechoruscolour
Titletitlefonttitlesizetitlecolour
Part labels in the marginlabelfontlabelsizelabelcolour
Tab partstabfonttabsizetabcolour
Chord gridsgridfontgridsizegridcolour
Table of contentstocfonttocsizetoccolour
Page footerfooterfontfootersizefootercolour

Our editor keeps these lines in the file and sets the sheet in its own style.

Your own directives and instrument conditions

x_…

in the spec

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

in the spec

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}
The editing view of the editor with font and colour directives: textfont and textcolour show as rows with their values, the lyrics below them look as usual, and the lines textfont, textcolour, chordcolour and x_sonua_note stay as grey text.
Font, colour and an 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 manualMeaningIn the spec
{su: …}Subtitle{subtitle}, short st
{pagebreak}New page when printing{new_page}
{soh} … {eoh}Highlight a passage in colourno directive; {textcolour} changes the colour of the lyrics
{pause: 10}, {scrollspeed: 7}Control auto scroll in one appnone; 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.

Gigproof stage mode on an iPhone: a song with chords above the lyrics.
A ChordPro song in the stage mode of Gigproof, before its App Store release.

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.