Virtual Piano
Piano Keyboard
Use Z–M and Q–I. Hold Space for sustain.
65%
Recording Settings
Recording Settings

Sets the MIDI tempo for your next recording. Notes keep the timing you play.

Record up to 10 minutes or 4,096 notes. Sustain is saved as longer notes.

Recordings stay in this browser. Download a copy from My Recordings to keep it on another device.

WAV and MP3 include up to 0.2 seconds for the last note to fade. Long audio exports may take more time or memory; MIDI downloads keep the notes without rendering audio.

Virtual Piano

Play with your keyboard or touch. Save your recording as MIDI, WAV, or MP3.

Small Beginnings

A single-note melody with short phrases and a held final note.

0:19 · Simple Melody · 100 BPM

Rolling Daylight

A flowing melody over overlapping, broken-chord accompaniment.

0:20 · Broken Chords · 96 BPM

After Hours

A relaxed melody with bass notes and offbeat seventh chords.

0:23 · Melody & Chords · 84 BPM

Why Choose CocoMusic Virtual Piano?

Play an idea, hear its phrasing, and keep a useful take for your next music session.

  • A Piano Wherever You Have a Browser

    Computer keys, mouse, and touch play the on screen keyboard. A melody or chord can take shape without a physical piano beside you.

  • Keep the Timing You Played

    Recording preserves note lengths and overlapping notes. The take follows your phrasing, so the idea you keep reflects the performance you heard.

  • Keep Audio and Editable Notes

    MIDI, WAV, and MP3 downloads give your take different uses. Editable notes support further arranging, while audio is ready for listening or mixing.

  • Free to Play and Record

    Playing, recording, and exporting use no credits. Trying a phrase, comparing takes, and keeping a useful version fit into the same session.

Play, Record, and Keep Your Piano Ideas

Explore notes and chords, shape a phrase, then turn the performance into a take you can return to.

Play With Your Keyboard, Mouse, or Touch

Your computer keyboard becomes a playable piano keyboard, with the matching letters shown on screen. Mouse and touch input work on the same keys. Hear a melody as you try it, or play overlapping notes to check a chord. It is a useful starting point for finding a tune when you do not have a piano beside you.

Play My Melody
Person trying piano notes with a laptop, touch keyboard, and mouse.

Find Notes Across Different Octaves

Octave Range moves the keyboard into a different register. Explore a bass idea or a higher melody without changing tools. Note Labels can be shown while finding a pitch and hidden when practicing by ear. Expand Piano gives the keyboard more room for playing, then returns to the normal workspace when you want to review a take.

Explore the Keyboard
Musician exploring different registers on a piano keyboard.

Shape a Phrase With Sustain and Volume

Sustain lets notes ring into the next part of a phrase. Keep it enabled, or hold Space while you play to use it like a pedal. Keyboard Volume changes the listening level, with a mute control nearby. The sound is a synthesized piano tone. Try different phrasing and hear how longer notes overlap before recording an idea.

Try a Phrase
Player shaping a piano phrase with sustained notes and a volume control.

Record the Performance as You Play

Record captures note starts, note lengths, and overlapping notes. Timing begins with your first note. There is no empty lead to trim while you get ready. Stop Recording turns the performance into a take you can replay. Compare a few attempts at a melody or chord progression, then keep the one that carries the phrasing you want.

Record a Take
Musician capturing a played phrase as a sequence of timed notes.

Download MIDI, WAV, or MP3

MIDI keeps your notes and timing available for further editing. WAV and MP3 turn the take into piano audio you can listen to or use in an audio project. Choose the format for your next step: refine the melody in a MIDI editor, keep an audio reference, or bring a piano part into a mix with other recordings.

Make My Recording
Pianist keeping a musical idea as editable notes and listening files.

Return to a Take and Keep Working

My Recordings keeps completed takes in this browser when storage is available. Replay or rename a take, or open its notes with Edit in MIDI Editor. A rough idea can become the starting point for a more detailed arrangement. Download a separate copy before clearing site data or moving to another device.

Start My Next Take
Musician revisiting recorded musical phrases and preparing a note arrangement.

How to Play and Record Piano Online

Start with a few notes, capture the phrase, and listen before choosing the version you want to keep.

  1. Find Your Starting Notes

    Choose an Octave Range and comfortable Keyboard Volume. Play the letters shown on the keys, click with your mouse, or touch the keyboard to hear your first phrase.

  2. Record Your Performance

    Choose Record, then start playing when you are ready. Try the melody, chord progression, or short piano part you want to keep. Choose Stop Recording when the phrase is finished.

  3. Listen and Keep a Copy

    Open My Recordings and replay the take. Use its download buttons to choose a file format, or choose Edit in MIDI Editor when you want to work on the notes.

Person playing and recording a piano phrase on a laptop.

Compare CocoMusic With Other Virtual Pianos

Compare playing controls, recording options, and usable output formats for your next piano idea.

Comparison CriteriaCocoMusicMusiccaButtonBassRecursive ArtsVirtualPiano.euApronus
Play ControlsKeyboard, mouse, touchComputer keyboard / mouseKeyboard / mouse / touch / MIDIKeyboard / mouse / touch / MIDIKeyboard / mouse / touch / MIDIKeyboard / mouse / touch
Keyboard RangeC2 to C6 starting octavesOctave selection49 keys · C2 to C63 or 5 octave key mappings88 keys; smaller layouts2 or 3 octave key mapping + shift
Sound ChoicesSynthesized pianoPiano9 sound choicesPiano + other sampled instruments128 instruments + drumsDefault / enhanced piano samples
Record and ReplayLive notes and real timingRecord / replay; up to 5 minLocal audio recording / replayRecord / save / replayBrowser takes; MIDI recordingRecord / replay; layered takes
Download FormatsMIDI, WAV, MP3Download; format not specifiedScripts: WAV, MIDI, TXT; live audio variesNot ConfirmedMIDIMIDI; TXT work layout
Practice AidsNote labels, piano examplesNote marking; linked exercises21 songs; guided PracticeInteractive songs; scales; game17 songs; chord / scale finderCustom chord buttons; chord recognition

FAQs

Answers about playing, recording, downloads, and keeping your piano takes.

What Is a Virtual Piano?

A virtual piano lets you play piano notes in a browser using a computer keyboard, mouse, or touchscreen. CocoMusic gives you a keyboard for trying melodies and chords, with recording available when you want to keep an idea.

Is CocoMusic Virtual Piano Free?

Yes. Playing, recording, and downloads are free. No account is required.

How Do I Play With My Computer Keyboard?

Press the letters shown on the piano keys. The lower and upper rows cover different notes, including the marked black keys. Hold Space for sustain, and change Octave Range when your melody needs a different register.

Can I Play on a Phone or Tablet?

Yes. The piano keys respond to touch and hold. Narrow screens show a shorter keyboard. Change Octave Range to reach a different register, and check your device volume if the first note is silent.

Can I Record My Piano Playing?

Yes. Choose Record, play your phrase, and choose Stop Recording. Your completed take appears in My Recordings. Each take supports up to 10 minutes or 4,096 notes, whichever comes first.

Should I Download MIDI, WAV, or MP3?

Choose MIDI for editable notes, WAV for lossless piano audio, or MP3 for a smaller listening file. MIDI needs an instrument or MIDI editor to make sound. The audio files contain the rendered piano performance.

Can I Edit a Recorded Take?

Yes. Edit in MIDI Editor opens the recorded notes in CocoMusic MIDI Editor. Continue there when you want to change individual notes or arrange the part. Download a MIDI copy when you want to keep the notes separately.

Are Recordings Saved to My Account?

No. Completed takes are stored in the current browser when local storage is available. They do not sync to your account or other devices. Keep a downloaded copy of any recording you want to use later.

Can I Connect an External MIDI Keyboard?

No. Hardware MIDI input is not currently supported on this page. Play with computer keys, mouse, or touch. MIDI downloads are available for bringing the recorded notes into another music application.

Why Can’t I Hear the Piano?

The piano needs an initial key press to start browser audio. Try a key, then check Keyboard Volume, the mute button, and your device sound settings. If the browser still cannot start audio, try a browser with Web Audio support.

Piano Privacy and Local Data

Understand where the sound, exported files, and recording history are handled.

  • Sound Is Created on Your Device

    Web Audio builds the piano tone in your browser. You can hear the notes you play without sending a performance to a remote sound generator.

  • Exports Are Processed Locally

    Your browser prepares recording downloads. The MP3 encoder is loaded when needed, so the initial page visit still requires a connection to load its resources.

  • History Stays in This Browser

    Completed takes use this browser’s local storage. They stay separate from your account library, so another device does not automatically receive a copy of your recordings.

  • Clearing Site Data Removes Takes

    Browser recordings depend on local site data and available storage. Download an important take to keep a separate copy before you clear that data or change devices.

Play the Melody in Your Head

Try a phrase, record the take you like, and keep a copy for your next music project.

Play Virtual PianoFree to Play
Person trying a piano phrase on a laptop in a warmly lit room.