Virtual Piano Online:

play single notes or chords with keyboard, mouse or touchscreen (seven octaves)

Our online piano can be played like a physical piano because we match the piano keyboard layout: white keys to the second row and black keys to the first row on the computer's keyboard.

Names of Piano Keys

Check out our first music lesson: the names of the piano keys and their sound frequencies.

Major triads demo

with a definition and demonstration

Minor triads demo

with a definition and demonstration

Major scales demo

with a definition and demonstration

Natural minor scales demo

with a definition and demonstration
This virtual piano can be played in three ways:

Use the computer keyboard to play the virtual piano

By default, the main part of the computer keyboard plays from C3 to C5 but you can change it to any other two octaves between C and C. You can use the selector below the piano keyboard or you can press the Left and Right arrows on the computer keyboard.

Play any chords with the computer keyboard

The keys from the row A,S,D and the row Z,X,C are programmed to play white key chords for rich melodies. Moreover, with advanced options you can assign any user-defined chord or single note to any key of the computer keyboard. Tick the CHORD checkbox to indicate a chord on the piano keyboard and then check it off to create a custom-made chord button. This button will play your chord but it can also be configured to be associated with a computer keyboard key.

Record and playback

You can record anything played by this virtual piano keyboard and play it back at will. To start and stop recording check and uncheck the box RECORD. A playback button will appear automatically. You can have many playback buttons: each with its own recording. You can even play back more than one recording at the same time while making another recording to combine them.

Download audio files for your recordings

Each recording can be downloaded as a MIDI file. Such a file can be played by Windows Media Player directly or it can be converted online for free to an mp3 file.

First make a recording and then locate the button which plays this recording. Next click the settings icon beside the button. Then click the download audio button.

Please donate if you find this feature useful. I had to buy a more expensive hosting service to be able to run the script which generates MIDI files. And generally I struggle to find the time to work on my virtual piano because the website brings so little money that I need to focus all my efforts on my job just to survive financially.

Save your work

Your recordings and your custom chords are stored as buttons which can be dragged around to shift position. You can save all your buttons as a text file to your hard drive and then load this file later. Each button can be renamed and configured to be triggered by any key from the computer keyboard. You can program your computer keyboard so that each key plays a custom chord or a playback recording and then save the layout for later.

Bookmark your chords

You can generate a link that encodes all the chords from your buttons. For example, this link encodes all the possible three-note C major chords between C3 and C5: The online piano will be able to play all these chords after an appropriate button is clicked.

This online piano is available offline

This is an online piano in the sense that it needs a live Internet connection to work. But there is an offline version available as a single HTML file that you can open in your browser without being connected to the Internet. Note that the offline version does not have certain features which require a connection. It won't save your work and you can't download audio files of your recordings. The better sound quality option is not available. You can use it offline for private personal use including in a school classroom or in a private class. Contact me directly if you are interested.

Solfège is optional

You can load this online piano from the link

Better sound quality

The default sound files are optimized for speed of loading so that you can start playing the piano immediately without waiting for the sounds to load. However, this comes at the cost of reduced quality, which may be an issue when using external loudspeakers or headphones. Fortunately, you can optionally load better sounds if you need higher sound quality.

Chord recognition

You can check the CHORD checkbox to form any chord. This piano will recognize the following types of chords and display the full name:

Virtual guitar

You might also be interested in my virtual guitar that plays all the major chords, minor chords, and dominant sevenths chords. In fact, it can play any chords at all. But more importantly, the notes on the fretboard are visualized on a separate virtual piano keyboard which serves to explain how the guitar works to those who already understand the piano.

Feedback is welcome

I have the ambition to make it the most useful virtual piano online simulator in the world so I need to know what exactly my users expect when they play it. Please feel free to write any comments and remarks by using the email address displayed on the homepage.

Privacy Policy