Articles
Published · November 18, 2026

ChordPro: Write Song Lyrics and Chords in a Plain Text File

ChordPro keeps a song's lyrics and chords in one plain text file. Chords go in square brackets, directives in curly braces, and # lines are private notes.

Also in: Español中文हिन्दी

Write a chord sheet in any text editor

ChordPro is a plain text format where chords sit in square brackets inside the lyrics, and lines in curly braces describe the song. You can write it in any text editor, and software turns it into a formatted chord sheet later.

That makes it a good fit if you keep songs in a notes app. A ChordPro file is just text, so you can search it, copy it, and sync it like any other file. Here's the bracket syntax, the directives you'll use most, how to mark verses and choruses, and how to leave notes for yourself.

What ChordPro is

According to the ChordPro project, Martin Leclerc and Mario Dorion developed the format in 1992 to write lead sheets, meaning songs with lyrics and chords, along with a tool called chord that printed them. Wikipedia's history adds that the project was revived as Chordii in 2007 and modernized from 2015 under the ChordPro name, which supports format version 6.

A ChordPro file has only a few kinds of line:

  • lyrics-and-chords lines
  • directives, written in curly braces
  • empty lines
  • remarks that start with #

File names and extensions can be arbitrary. The common ones are .cho, .crd, .chopro, .chord and .pro, and the project advises .cho for new files because it is short, easy to remember, and not heavily used by other applications.

Put chords in square brackets

Write the chord in square brackets right before the syllable where it changes. When a sheet is printed, the chord appears above that syllable.

[C]Twinkle, twinkle, [F]little [C]star,

The chord can sit in the middle of a word, so a long word can carry a change halfway through it. The ChordPro introduction shows this with chari[D]ot.

Version 6 also supports annotations. Write [*text] and the text is placed above the lyrics like a chord, which suits a note such as a strum pattern or a count-in.

One habit helps: type the lyric line first, then add brackets. Brackets mid-line make it hard to read the words as a sentence, so keep a clean copy of the lyrics nearby if the song is long.

Directives: title, key, and the rest

A line that starts with { and ends with } is a directive. The directives reference describes it as a friendly request: the actual result is left to whatever program formats the file.

{title: Swing Low Sweet Chariot}
{subtitle: Traditional}
{key: G}
{capo: 2}

The reference lists these metadata directives: title, subtitle, artist, composer, lyricist, copyright, album, year, key, time, tempo, duration, capo, tag and meta. Use only the ones that matter to you. A title alone makes a usable file.

Many directives also have short forms, such as t for title, st for subtitle and c for comment. The reference advises using the full names, since abbreviations may become ambiguous if new directives are added.

If a directive needs several values, it uses attribute syntax, for example {image: src="myimage.jpg" scale="50%"}.

Verses, choruses, and bridges

Sections are marked with pairs of directives, one to start and one to end. The reference lists chorus, verse, bridge, tab and grid, each with a short form: soc and eoc for the chorus, sov and eov for a verse, sob and eob for a bridge.

{start_of_verse: label="Verse 1"}
[G]Swing low, sweet [D]chariot
{end_of_verse}

{start_of_chorus}
[G]Coming for to carry me [D]home
{end_of_chorus}

A label is optional. The reference says both {start_of_verse Verse 1} and {start_of_verse label="Verse 1"} work, and that the explicit form is more robust and future-proof.

A formatter can print a chorus in a distinct way. If you want a plain cue instead, {comment: Chorus} prints a text line with that word, a reminder to play the chorus. For the same care with line breaks in other text, see keeping stanza breaks intact.

Why plain text suits a chord sheet

A chord sheet in a proprietary document is tied to the program that made it. A ChordPro file isn't tied to anything. Any text editor can create and maintain it, and that's the whole point of the format.

Plain text also helps in smaller ways:

  • You can search every song for a chord, a key or a title with ordinary text search.
  • A song is one small file you can copy, email or keep in a folder per setlist.
  • Version history is readable, because a change is one changed line.

Notes for yourself go on lines that start with #. The introduction says all such lines are ignored, so write # check the bridge key and it will not show up in the output. Directives that start with x_ are for custom extensions, and the reference says applications that do not handle them should ignore them completely.

The same idea shows up in other formats. An .ics file holds calendar events as text, and JSON Lines keeps one record per line. In each case the file stays readable without special software.

One trade-off to know: ChordPro describes content, not layout. Fonts, columns and page breaks depend on the program that turns the file into a sheet.

Doing this with Carets

Carets is a native notes and code editor for iPhone, iPad, and Mac, and a ChordPro song is exactly the kind of file it holds well. Your song stays plain text, so it remains portable and future-proof. You can keep songs in files, group a setlist as a project, and tag songs by key or by band.

Because it is fast and built for iOS and Mac rather than wrapped from a web page, you can open a song on your phone at rehearsal and fix a chord in seconds. The same app handles Markdown, plain text and code, so your song notes and your lyrics drafts live side by side.

Get Carets for iPhone, iPad, and Mac on the App Store.

Frequently Asked Questions

What file extension should a ChordPro file use?

The ChordPro site lists .cho, .crd, .chopro, .chord and .pro as common extensions. It advises .cho for new files because it is short, easy to remember and not heavily used by other applications.

Can I put a chord in the middle of a word?

Yes. A chord goes in square brackets right before the syllable it belongs to, so it can sit mid-word, like chari[D]ot.

How do I leave a private note in a ChordPro file?

Start the line with #. Lines that begin with a # are ignored when the song is formatted.

Do I need special software to write ChordPro?

No. It is a plain text format, so any text editor can create and maintain the files. Software is only needed to turn them into formatted chord sheets, such as PDFs.