MIDI Keyboard Online

Play with computer keys, mouse or touch. Record notes and export a .mid file; external devices are output destinations, not recording inputs.

8 Instrument Timbres Record & Playback Export .mid Sustain Pedal Web MIDI Output
C4 – B5
BPM
Ready to record

Keys: Z–M lower octave   Q–U upper octave   Space Sustain toggle   ←→ Octave   Ctrl+S Export

What this MIDI keyboard can record and export

Create an editable note sequence with your computer keyboard. You do not need a physical MIDI keyboard to use the on-screen instrument.

Inputs and outputs are different capabilities
TaskCurrent support
Computer keyboard, mouse or touchPlay notes in the browser, then record and replay the note sequence.
Download .midOne track with note-on/note-off events and tempo. No recorded audio, synth patch, program-change or sustain events.
Web MIDI outputSend notes to a compatible external device or virtual MIDI port. Browser permission and a working connection are required.
External USB MIDI keyboard inputNot supported here. Use software with MIDI input recording for that workflow.
MP3 or WAV exportNot provided by this tool. A .mid file needs a synthesizer or music application to make sound.

Set the BPM before recording. Stop also ends recording and closes any unfinished recorded notes. Changing BPM afterward applies to the next recording; the existing file keeps its original tempo.

Different applications can interpret instrument choices differently. Choose the sound in your destination software and listen to the imported file before sharing it.

Check an actual exported file

This original practice file was recorded with ToolKnit: C4, E4 and G4 (MIDI notes 60, 64 and 67), three note-on/off pairs, one track and 120 BPM. It is 61 bytes, with a duration of about 1.25 seconds including the initial delay. It contains no customer performance.

Download the three-note MIDI example

How to use the MIDI keyboard

Three steps from idea to .mid file.

1

Pick a timbre & play

Choose Grand Piano, Organ, Synth, Strings, Pipa, Guitar, Flute, or Music Box. Play with your computer keyboard (Z-M + Q-U), mouse, or touch. Shift octaves with arrow keys.

2

Hit REC & perform

Click REC and play your melody. Every note and its timing is captured. Use the sustain pedal (Space) for legato phrases.

3

Export .mid & open in DAW

Stop, then Export (or Ctrl+S) to download a standard MIDI file. Open it in software with Format 0 MIDI import and choose an instrument there.

Why use this online MIDI keyboard?

8 Instrument Timbres — Zero Audio Files

Grand Piano, Electric Organ, Synth Lead, String Ensemble, Pipa, Guitar, Flute, and Music Box. All sounds are generated in real time by the Web Audio API with multi-oscillator synthesis and ADSR envelopes.

Standard .mid File Export

Exports a Standard MIDI File (Format 0): one track, note events and the recording tempo. Choose an instrument in compatible music software; the browser sound is not embedded.

Full Computer Keyboard Mapping

Two rows cover two octaves simultaneously. Z–M for the lower octave, Q–U for the upper. Black keys sit on the letter and number rows in between. Play chords by pressing multiple keys at once.

Web MIDI Output — Send Notes to a Device

Choose a hardware or virtual output in a supporting browser and grant permission when requested. This page sends notes outward; it does not record an external USB MIDI keyboard.

100% Private & Works Offline

All synthesis and recording happens in your browser. No audio is sent to any server. Once loaded, the keyboard works offline via the service worker.

Pro Tips

  • ●Toggle the sustain pedal with Space. Notes keep ringing until you switch it off.
  • ●Use the arrow keys to shift octaves and reach a wider pitch range.
  • ●Play back your performance before exporting to verify that the recording sounds right.
  • ●Set the BPM before recording so the .mid file carries the correct tempo.
  • ●The Synth Lead timbre works especially well for bass lines in lower octaves.
  • ●Pair this keyboard with the Metronome to record in time.
  • ●Connect a MIDI output from the plug dropdown to send notes to your DAW in real time (Chrome/Edge).
  • ●Pipa (琵琶) has a sharp pluck attack that suits fast melodic runs and Chinese music styles.
  • ●Guitar (吉他) works well for strumming patterns in mid-range octaves (C3–C5).
  • ●Flute (笛子) sounds best in higher octaves (C5+) with sustain for long, breathy notes.
  • ●Music Box (音乐盒) has a quick decay that is ideal for lullabies and delicate melodies.

FAQ

Frequently Asked Questions

Yes. The ToolKnit MIDI Keyboard is 100% free with no signup, no ads, and no installation. It runs entirely in your browser using the Web Audio API.
Yes. Record, press Stop, then Export to download a Format 0 .mid file. It stores notes and tempo, not MP3/WAV audio or the selected synth timbre. External MIDI keyboard input is not supported.
The lower row (Z-M) plays one octave and the upper row (Q-U) plays the next octave. Black keys are on S, D, G, H, J and 2, 3, 5, 6, 7. Use arrow keys to shift octaves, and Space for the sustain pedal.
Yes. Tap the piano keys directly on your phone or tablet. Multi-touch is supported so you can play chords.
Eight timbres are built in: Grand Piano, Electric Organ, Synth Lead, String Ensemble, Pipa (琵琶), Guitar (吉他), Flute (笛子), and Music Box (音乐盒). All sounds are generated in real time by the Web Audio API; no audio files are loaded.