Skip to the instrument
Tic Tac Toe

Virtual Guitar

Strum chords and pick notes on this virtual guitar in your browser: swipe across six strings or use your keyboard, choose from 96 chords, and add a capo.

Play the virtual guitar

Pick a chord, then swipe across the strings to strum it, or tap a string to pluck it. Tap the neck to play single notes. On a computer keyboard, 1 to 8 play the chords, Space or ↓ strums down and ↑ strums up, and A S D F G H pluck the strings from the low E up.

Sound and settings
Your settings and chords are saved in this browser.
Guitar
Note names on the neck
75%
Change a chord
Choose a new root and type for chord 1. Press a chord button to edit a different one.
Fingering, low E to high Ex 3 2 0 1 0

How it works

How to play the virtual guitar

Press a chord button, then swipe across the six strings or tap Space to strum, and touch the neck whenever you want a single note instead.

  1. Step 01

    Pick a chord

    Press one of the eight chord buttons, or 1 to 8 on your keyboard. The chord plays once, and the neck shows where the fingers go.
  2. Step 02

    Strum the strings

    Swipe down or up across the strings, tap one to pluck it, or press Space to strum down and ↑ to strum up.
  3. Step 03

    Make it your own

    Put another chord on any button under Change a chord, pick a guitar sound, and set a capo to play higher with the same shapes.

Features

A virtual guitar you can play straight away

  • Strum with a swipe

    Swipe across the strings to strum, faster for louder. Each string sounds as you cross it, down or up.

  • 96 chords

    Major, minor, 7th, major 7th, minor 7th, sus2, sus4, and power chords on all 12 roots, in open or barre shapes.

  • Play with your keyboard

    Number keys pick and play chords, Space and the arrows strum, and A to H pluck single strings.

  • Four guitar sounds

    Steel-string acoustic, nylon-string classical, clean electric, and an overdriven electric for rock.

  • A neck that shows the shapes

    Every chord appears on a 12-fret neck with its root marked in amber. Switch to All notes to see every note name.

  • Capo and saved chords

    A capo on frets 1 to 7 moves every chord up. Your chords and settings are saved in this browser.

Tips

Virtual guitar tips: strumming and chords

Four chords are enough for a lot of songs. These habits make them sound more like guitar playing and less like a row of notes.

  • Start with four chords

    C, G, Am, and F, the first four buttons, make the loop behind many pop songs. Play each for four strums, then press the next number key.

  • Strum down on the beat, up in between

    Count 1 and 2 and 3 and 4: down on the numbers, up on the ands. The Up button and the ↑ key play lighter, with the high strings loudest, like a real up-strum.

  • Mind the × strings

    Strings marked × aren't part of the chord, so strums skip them. Every chord here starts on its root: C on the A string, D on the open D, G on the low E.

  • Use the capo to change key

    With a capo on fret 2, the G shape sounds as A, and the display tells you so. You can play in a higher key without learning new shapes.

  • Pick through the chord

    Press A to H, low E to high E, to play the chord one string at a time, like a slow arpeggio. If a string isn't in the chord, the guitar tells you.

  • Stop cleanly with Mute

    Mute stops every string at once. Use it for a sharp ending, or to leave a gap before the next chord.

About the instrument

Virtual guitar online: strum chords and pick notes in your browser

Strumming, single notes, keyboard controls, the 96 chords, reading the neck, the capo, the four sounds, and how the strings are made.

This virtual guitar has six strings in standard tuning, a 12-fret neck, and 96 chords. Strum it with a swipe or the computer keyboard, tap the neck to pick out single notes, and switch between acoustic, nylon, clean electric, and overdrive. It runs in your browser on a computer, tablet, or phone, with nothing to install.

How to strum the virtual guitar

Choose a chord with one of the eight chord buttons, and it plays once so you can hear it. Then swipe across the strings below the neck to strum. Swipe down for a down-strum, from the low E to the high E, and up for an up-strum. Each string sounds as you cross it, and a faster swipe plays louder.

Tap right on a string to pluck it on its own: it plays that string's note in the current chord. The Strum down and Up buttons play the whole chord, with the strings just over a hundredth of a second apart, and Mute stops every string at once. As on a real guitar, each string plays one note at a time, so a new note on a string stops the last one.

Pick single notes on the neck

Tap any fret, or an open string at the nut, to play that one note, whatever the chord, so you can pick out a melody or a riff. Six open strings and 12 frets give 78 spots to play. The frets get closer together up the neck, as on a real guitar, and the 12th fret, marked with two dots, sounds an octave above the open string.

Note names on the neck has three settings: Chord names the notes in the current chord, All notes names every note on every string, and Off shows the chord dots without names.

Keys for chords, strums, and single strings

With a computer keyboard you can play without the mouse:

  • 1 to 8: pick the chord on that button and strum it. The number pad works too.
  • Space or ↓: strum down.
  • ↑: strum up, lighter and brighter, like a real up-strum.
  • A S D F G H: pluck one string of the chord, from the low E to the high E.

The keys work while the guitar is on screen, and typing in a text box never plays a note.

96 chords: eight types on 12 roots

Every root from C to B comes in these eight types:

  • Major and minor
  • Dominant 7th (7), major 7th (maj7), and minor 7th (m7)
  • Suspended 2nd (sus2) and suspended 4th (sus4)
  • Power chords (5), just the root and the fifth

The buttons start with C, G, Am, F, D, Em, A, and E. To change one, press it, then choose a new Root and Type under Change a chord. The new chord plays straight away, and Reset to the starting chords brings the first eight back.

Of the 96, 35 use an open shape, the familiar first-position fingerings such as C, G, D, Am, and E7. The other 61 use the two standard barre shapes, built on the low E or the A string, usually whichever sits lower on the neck.

Reading the chord shapes

White dots show where the fingers go, and the amber dot is the root, the note the chord is named after. A ring at the nut means an open string, and a red × means a string you don't play. The display spells out the fingering from the low E up, such as x32010 for C.

Every chord starts on its root, so the lowest note you hear names the chord. F and B♭ are barre chords, played with the E and A shapes moved up to the first fret, where one finger lies across several strings. That's how one shape plays every chord of its type: move it up a fret and every note rises a semitone.

Capo and standard tuning

The guitar uses standard tuning, E A D G B E from the lowest string to the highest, and has no other tunings. A capo clamps across the neck and raises every string together. Set Capo to a fret from 1 to 7, and each chord plays higher with the same shape. The display shows what it sounds as, such as Capo 2 · sounds as A for the G shape. With a capo on, the neck counts frets from the capo, as chord charts do, and the note names move with it.

Acoustic, nylon, electric, and overdrive

Pick a sound under Guitar. Changing it strums the current chord so you can hear the difference:

  • Acoustic: a steel-string guitar with a full, ringing body.
  • Nylon: a classical guitar, softer and rounder, as if plucked with the thumb.
  • Electric: a clean electric guitar with the bright edge of a pickup and a long sustain.
  • Overdrive: the electric through a driven amp, for rock riffs and power chords.

The two electric sounds fade more slowly than the steel-string acoustic, so a strummed chord rings on, while the nylon strings die away a little sooner.

How the virtual guitar makes its sound

Every note is made in your browser with the Karplus-Strong method, so no recorded samples are downloaded. A short burst of noise circulates in a loop exactly one vibration long, losing a little brightness on every trip, which is how a plucked string behaves. The loop is tuned to a fraction of a sample, so every note is in tune, and the open low E rings nearly twice as long as the high E.

Each sound then passes through its own body or amp. The acoustic and nylon sounds boost the low resonances of a guitar body, the electric adds a pickup's bright peak, and overdrive pushes the signal into a soft-clipping curve, like turning up a guitar amp.

Where the guitar and its synthesis came from

The modern classical guitar owes its shape to Antonio de Torres, a Spanish maker of the mid-1800s whose design guitar makers still follow. Electric guitars with magnetic pickups followed in the 1930s.

The Karplus-Strong method is much newer. Kevin Karplus and Alex Strong published it in 1983, and David Jaffe and Julius O. Smith extended it the same year with the fine tuning and pick-position filter this guitar uses.

Strumming on a phone, tablet, or computer

The guitar runs in any modern browser on a Windows PC, Mac, Chromebook, iPhone, iPad, or Android device:

  • Touch: swipe across the strings to strum, or tap one to pluck it. On a narrow screen the neck stands upright like a chord chart, with the low E on the left.
  • Mouse: drag across the strings, and click the neck for single notes.
  • Keyboard: number keys for chords, Space and the arrows to strum, and A to H for single strings.
  • Screen readers: every fret, string, and chord button has a spoken name, such as E minor, key 6, and messages are announced.

The page needs a connection to load. After that, every string is plucked by code running on your own device, from the first noise burst to the body or amp that colors it.

Saved on this device: your eight chords

The chords you put on the eight buttons, the one you picked last, and your sound, note names, capo, and volume stay in this browser's local storage under virtual-guitar:v1, so the neck looks the same next visit. The privacy policy covers that entry, and the notes you strum and pick aren't sent to a server.

The guitar has no recorder. To record yourself, try the Virtual Piano, or start a loop on the Virtual Drums and strum along in another tab.

FAQ

Virtual guitar questions

Quick answers about the virtual guitar: strumming, keys, chords, tuning, the capo, recording, and sound.

How do I strum the guitar?

Pick a chord, then swipe across the strings below the neck, down or up. A faster swipe plays louder. On a keyboard, press Space or the down arrow to strum down and the up arrow to strum up.

Which chords can I play?

Major, minor, dominant 7th, major 7th, minor 7th, sus2, sus4, and power chords on all 12 roots: 96 in all. Put any of them on the eight chord buttons under Change a chord.

Which keys play the guitar?

1 to 8 pick and strum the chord buttons, Space or the down arrow strums down, the up arrow strums up, and A, S, D, F, G, and H pluck the strings one at a time, from the low E to the high E.

What tuning does it use?

Standard tuning, E A D G B E from the lowest string to the highest. There are no other tunings, but a capo on frets 1 to 7 raises all six strings together.

How does the capo work?

Choose a fret from 1 to 7 under Capo. Every chord keeps its shape but sounds higher, and the display shows what it sounds as: with a capo on fret 2, the G shape sounds as A.

Are these real guitar chord shapes?

Yes. Open chords use the standard first-position fingerings, and the rest use the usual E-shape and A-shape barre chords, so you can copy them onto a real guitar.

Is there a way to record the guitar?

Not on this page: the guitar has no recorder. The Virtual Piano has one, for a single take of up to 10 minutes.

Why doesn't the guitar make a sound?

Browsers hold back audio until you've tapped, clicked, or pressed a key on the page, so strum once to start it. Still quiet? Check the guitar's volume slider and your device's volume, and make sure the tab isn't muted.

Why does the neck stand upright on my phone?

A 12-fret neck lying sideways would be too cramped on a narrow screen, so it turns upright like a chord chart, with the low E string on the left. Swipe across the strings with a finger to strum.