Note to MIDI Number
Convert a musical note (like A4 or C#3) into its MIDI note number. Handy when programming synths, sequencers and virtual instruments.
MIDI nº
—
From note names to MIDI numbers
Sequencer, plugin or library: sooner or later everything asks for the note number rather than the note name. You want to play middle A and the field expects 69. Type A4 here and the number shows up right below, updating on every keystroke. It is handy for filling a note array quickly, checking what a controller is sending, or moving a bar of sheet music straight into code.
The arithmetic is plain: pitch class is 0 for C, 2 for D, 4 for E, 5 for F, 7 for G, 9 for A and 11 for B; a sharp adds one, a flat removes one; then you add the octave plus one, multiplied by twelve. That locks in the convention where C4 is 60 and A4 is 69, the same one Ableton and most plugins use. C-1 gives 0 and G9 gives 127, the exact ends of the MIDI range.
The accepted format is strict: an uppercase letter from A to G, an optional # or b, and the octave as a whole number with a minus sign when negative. Typing a4 in lowercase, F## or the sharp and flat symbols returns a dash instead. The range is not checked either: C10 shows 132, a number no MIDI gear accepts, so verify yourself that the result sits between 0 and 127. The maths runs in your browser.
Frequently asked questions
Is middle C 60 or 72 here?
How do I write a flat?
Can it go the other way?
Related Tools
MIDI Number to Note Converter
Convert a MIDI note number (0 to 127) into the matching musical note with octave (e.g. 60 = C4). Handy for programming synths and virtual instruments.
Gas Mark to Celsius Converter
Convert gas oven settings (gas mark, scale 1 to 9) to degrees Celsius. Follow international recipes with the right temperature on your stove.
JSON to Markdown Table Converter
Convert an array of JSON objects into a formatted Markdown table, with header and alignment. Paste the JSON and copy a table ready for READMEs and docs.
IPv4 Format Converter
Convert IPv4 addresses between formats: dotted decimal (192.168.1.1), integer (3232235777), hexadecimal (0xC0A80101) and binary. Everything in your browser.
JSON Lines → CSV
Convert JSONL (NDJSON) file to CSV, deriving headers from the union of all observed object keys.
Org-mode → HTML (basic)
Render simple Org-mode to HTML: asterisk headings, lists, /italic/, *bold* and #+BEGIN_SRC blocks.