Browser-based music tool · ChordPro → transposed ChordPro, text or PDF

ChordPro Transposer

Paste or open a ChordPro song, move it up or down by semitones or to a new key, add a capo, switch between sharps, flats and Nashville numbers, and save the result as ChordPro, plain chords-over-lyrics text or a printable PDF song sheet.

Song

ChordPro text up to 512 KB. Chords go in square brackets, directives in braces.

Transpose

Move the song

Source key unknown (unknown).

Accidentals
Chord names

Result

Show

Paste a song or choose Load an example to see the result.

ChordPro Transposer

Operator: Abdulla Al Fahad. How tools are built and checked

Transposing a chord sheet by hand means finding every chord, moving it, respelling it and updating the key line, and one missed G7 is a wrong note in rehearsal. In ChordPro text every chord sits in square brackets, so a program can find them all, and this page finds them, moves them and respells each one for the new key.

It reads the file as ChordPro, changes only what parses as a chord, and leaves the rest exactly as typed: lyrics, directives, annotations such as [*Coda] and markers such as [N.C.]. The result can be saved as ChordPro again, as chords-over-lyrics text for an email, or as a PDF song sheet for the music stand.

Key features

  • Transposing by semitones (-11 to +11) or to a chosen key, with the source key read from the file or guessed from the chords
  • Sharps, flats, or the spelling that suits the new key
  • A capo fret from 0 to 9, with the three positions that give the most open chord shapes offered as buttons
  • Nashville numbers instead of letters, with minor chords written 6m or 6-
  • A preview with chords above syllables, the ChordPro text, and plain text with chords above lyrics
  • A PDF song sheet on Letter or A4 in one or two columns, with lyrics from 8 to 16 point

What is transposed, what is left alone and how the key is guessed

Directives are read in long and short forms: title, subtitle, artist, key, capo, tempo, time, comment, comment_italic, comment_box, start_of_chorus, verse, bridge, tab and grid and their ends, chorus (which repeats the last chorus), columns and new_page. Other directives are kept in the ChordPro output and ignored in the sheets. Fingering lines ({define} and {chord}) are dropped when the song is transposed, since they describe the old chords. Lines inside tab and grid blocks are never touched.

A chord is a root from A to G with an optional # or b, a quality built from the usual pieces (maj, min, m, M, dim, aug, sus, add, omit, alt, digits, + - ° ø Δ and brackets), and an optional bass note after a slash, so Bbm7/F and C#sus4 both move. A slash between two digits, as in C6/9, is part of the chord, not a bass note. Bracket text that does not fit is kept verbatim, and one that starts with an asterisk is an annotation, printed in italics without the asterisk.

A file may be up to 512 KB and 5,000 lines, and a PDF up to 30 pages. The PDF uses the standard fonts, Helvetica for words and chords and Courier for tab, so characters outside the Western European set print as a question mark; the page counts them.

How it works

Each chord as written is moved by the semitones you chose, plus the capo the file already has, minus the capo you set. A file with {capo: 2} is treated as chords drawn as shapes with the capo on, so the song sounds two semitones above those shapes. The {key} line follows the chords as written and the page shows separately what sounds.

Spelling follows the key the chords end up in: F, Bb, Eb, Ab and Db major and D, G, C, F, Bb, Eb, Ab and Db minor use flats, and every other key, including F# and Gb, uses sharps. If nothing moves and the spelling is on By key, the chords keep the letters they had, and so does the key line: {key: Gb} stays Gb.

The key is guessed by scoring all 24 keys: one point for every chord that is a diatonic triad of the key, 3 more if the first chord is its tonic chord and 3 more for the last. A relative major and minor share their chords, so the tonic bonus decides between them; Am F C G scores 7 for A minor and 4 for C major.

Capo positions are ranked by shape: open major chords A, C, D, E and G count 1, F counts a half, barre shapes count 0, and Am, Dm, Em, the sevenths of A, B, C, D, E and G, and power chords count 1. For positions 0 to 9 the chords are moved down by the fret and the score is summed; ties go to the lower fret.

Common use cases

  • A 30-chord hymn in G moved to A for a new singer: every chord changes, the key line reads A, and the plain-text version is ready to paste into the rehearsal email.
  • The same hymn at +3, sounding in Bb: with no capo the shapes (Bb, Gm, Eb, F) score 2 open-shape points out of 30, and with the capo on fret 3 every chord is an open G, C, D, Em or G7 shape and the score is 30 out of 30, which is why the page suggests fret 3 first.
  • A band chart written as Nashville numbers so that the keyboard player can call it in any key: 1, 4, 5 and 6m for G, C, D and Em.

How to use this tool

  1. Paste the song, open a file, or press Load an example.
  2. Check the source key line under Transpose; pick another from the list if the guess is wrong.
  3. Choose By semitones or To a key and set the amount.
  4. Set accidentals, letters or numbers, and a capo fret, using the suggested positions if you like.
  5. Look at the Preview tab to confirm each chord sits over the right syllable.
  6. Open ChordPro, Plain text or PDF and copy or download the result.

Example

A line of the example song, in G

A[G]mazing [G7]grace, how [C]sweet the [G]sound

The same line three ways

Up 2 semitones, {key: G} becomes {key: A}:
A[A]mazing [A7]grace, how [D]sweet the [A]sound
Nashville numbers in G:
A[1]mazing [17]grace, how [4]sweet the [1]sound
Up 3 semitones with the capo on fret 3, so the song sounds in Bb and the shapes stay in G:
A[G]mazing [G7]grace, how [C]sweet the [G]sound, with {capo: 3} added

Tips for best results

  • Use To a key when you know the singer's key and not the interval; the page works out the nearest move, from -5 to +6 semitones.
  • Choose Black for the chord colour in the PDF when you will print in grey, where blue chords can fade.
  • Press the capo suggestions after you have set the transposition, because they are ranked for the chords that sound.

Common pitfalls

A guessed key can be wrong when a song starts or ends away from its tonic. The list lets you set it, and Nashville numbers and spelling follow what you pick.

Open shapes are a count, not a playability test. A capo position can score well and still have an awkward change between two chords, so check it against the song.

Common errors and how to fix them

This file contains binary data, not text
Choose a .cho, .crd, .chopro or plain text chord sheet; a PDF or word-processor file cannot be read as ChordPro.

What a ChordPro file looks like

A song is plain text. Lyrics go on ordinary lines, a chord goes in brackets just before the syllable it falls on, and instructions go on their own lines in braces, such as {title: Amazing Grace} or {start_of_chorus}. Because chords are in brackets, they can be found and changed without touching words that look like chords, such as the A at the start of A[G]mazing.

Sharps, flats and F sharp

A note has one pitch and sometimes two names. Chart spelling follows the key: Bb in the key of F, A# in the key of B. For the keys where both are reasonable, F sharp and G flat, the page uses sharps. When it respells chords, the page never writes E# or Cb, and it never changes a chord's quality, so a minor seventh stays a minor seventh whatever the spelling.

Reading Nashville numbers

A number is the chord's root measured from the tonic of the key as a scale step: 1 is the tonic, 4 the fourth, 5 the fifth, with a b in front for a lowered step. Quality stays after the number, so 6m is a minor chord on the sixth step and 17 is a dominant seventh on the tonic. In a minor key the tonic is the minor tonic, so Am in A minor is 1m.

Frequently asked questions

My file has a {capo} line. Are its chords the shapes or the sounds?

The page reads them as shapes with the capo on, which is how most chord sheets are written. Moving to capo 0 then raises every chord by that many semitones, so the song keeps its sounding key.

Why does a slash chord like Am7/G move both letters?

The root and the bass note are each moved by the same number of semitones, so the interval between them stays what it was.

What happens to a line that is too long for the PDF column?

It wraps at a word boundary and each chord stays over the syllable it belongs to. A single word wider than the column is not split and runs over the margin.

Does the plain-text output keep the same spacing as the preview?

Chords are placed above the character where their syllable starts. When two chords would touch, the second is moved right so that one space remains, and the lyric line is never padded.