Skip to content
Aback Audio

How to record audio in your browser, from microphone to downloaded file

Record audio in your browser with a microphone. Choose Voice or Music, set your levels, trim and normalize, then save MP3, M4A, Opus, FLAC or WAV locally.

By Devvrat Hans11 min read

Yes, you can record audio directly in your browser. Open the Voice Recorder, allow microphone access, choose Voice or Music, press Start recording and watch the input meter. Press Stop when you are done, drag the waveform to keep the part you want, then save as MP3, M4A, Opus, FLAC or WAV. The recording is held in this tab's memory while you work and there is no upload step. This guide covers the full workflow, the settings that matter and the limits to expect on a phone or a long take.

60 min

per take

Automatic stop limit in the recorder

1.4 GB

per hour

48 kHz stereo, 32-bit float in memory

635 MB

per hour

44.1 kHz stereo, 16-bit PCM

How browser recording works

A page cannot reach your microphone without permission. When you press Start recording, the recorder calls the browser's getUserMedia API and opens an AudioContext. The browser returns a live microphone stream, and a Web Audio source node feeds it into an AudioWorklet processor. That processor collects samples in blocks of 2048 frames and transfers them to the page, where they are kept as float32 arrays. Browsers without AudioWorklet fall back to a ScriptProcessor node. The same capture path works on desktop and mobile, as long as the browser grants access.

Nothing is written to disk while you record. The chunks are held in memory as lossless PCM samples, then joined into a 24-bit PCM WAV when you press Stop. That WAV is the raw take. Everything after that, selecting a range, trimming edge silence, normalizing loudness and encoding, runs locally in the same page and a background Web Worker. There is no upload stage in this workflow.

Because the raw take is uncompressed PCM, its size is predictable and sometimes surprising. A short voice memo is tiny; an hour of stereo capture can exceed 1 GB of RAM before you export anything. The memory section below explains the numbers and how to stay within them.

Open the Voice RecorderRecord from your microphone, monitor the level and export the take in the format you need.

Prepare your microphone and room

Good recordings are mostly made before you press record. The browser can apply echo cancellation and noise suppression in Voice mode, but it cannot rebuild words that were lost to a noisy room or a distant microphone. Spend a minute on the setup and the saved file needs far less cleanup.

  • Use headphones. Listening through speakers while a live microphone is open creates a feedback loop, because the speakers feed straight back into the mic. Headphones are the simplest fix.
  • Pick a quiet spot. Turn off fans and air conditioning if you can, close the window and move away from a keyboard or a noisy desk.
  • Get close. For speech, a handspan or two from the microphone gives a strong signal with less room sound.
  • Choose the input. If your computer has several microphones, use the Microphone selector to pick a headset or USB mic instead of the built-in one.
  • Do a short test. Record a few seconds, play it back and listen for hiss, echoes and words that got cut off.

Record a take, step by step

The whole recording loop happens in one page. Here is the order that works for most takes.

  1. 1

    Open the recorder and choose a mode

    Go to the Voice Recorder, select Voice for speech or Music for instruments, and pick a microphone if your device offers more than one.

  2. 2

    Allow microphone access

    The browser asks for permission the first time. Choose Allow. Without permission the recorder cannot start, and the page shows a plain-language error if access is blocked or the device is in use.

  3. 3

    Set your level before you begin

    Speak or play at the volume you plan to use and watch the input meter. The peak marker should sit well below the CLIP label. Move back from the mic or lower its input level if the warning appears.

  4. 4

    Start and monitor

    Press Start recording. The elapsed time, a live waveform and the input meter update as you go. Pause if you make a mistake, then Resume; the take continues in the same file instead of starting over.

  5. 5

    Stop and review

    Press Stop. The take becomes a waveform with a selection you can drag to keep only the part you want. Play it back with the transport controls and adjust the selection if needed.

  6. 6

    Clean up, then save

    Leave Trim silence at the start and end and Even out the volume on if they suit the material, choose an output format and press Save recording. Download the result before you leave the page.

Voice mode versus Music mode

The Recording for choice changes what the browser does to the incoming signal. It also changes the loudness target used when you save. Pick it before you start, because the capture constraints are requested when the microphone opens.

The two capture modes in the Voice Recorder
ModeBrowser captureSave targetBest for
VoiceEcho cancellation, noise suppression and automatic gain control on-16 LUFSSpeech, voice notes, podcasts
MusicRaw input, no processing-14 LUFSInstruments, singing, room sound

Voice mode is the right default for a voice memo or a narration. The browser may clean up echo and steady noise as it captures, and the saved file lands near -16 LUFS, a common target for spoken audio. Music mode asks for the raw microphone signal, so the character of an instrument and the room come through untouched. Its save target is -14 LUFS, the usual level for streaming music.

Watch your input level

The input meter runs from -60 dBFS to 0 dBFS, with a moving peak marker and a separate RMS bar. It is there to help you set the level before the words you need are lost. Aim for a peak that is healthy but clearly below the right edge of the meter. Quiet speech can be raised later; a clipped peak cannot.

  • CLIP appears: lower the microphone's input volume in your system settings or move farther away.
  • The bar barely moves: move closer or raise the input volume, then test again.
  • One channel is quieter: that can be normal with some USB microphones. The recorder captures one or two channels according to what the browser reports.

Memory limits and long takes

A take is stored as float32 samples, four bytes per channel per sample. At 48 kHz stereo that is about 384 kB per second, roughly 23 MB per minute and around 1.4 GB for a full hour. The recorder shows the live memory figure as you record and stops automatically at 60 minutes. For comparison, a 44.1 kHz, 16-bit stereo PCM minute is about 10.6 MB, or roughly 635 MB for an hour.

Uncompressed audio memory and storage, calculated from sample rate x channels x bytes per sample
RepresentationBytes per secondAbout per hourWhere it applies
48 kHz stereo, 32-bit float384 kB1.4 GBLive capture in the tab
44.1 kHz stereo, 16-bit PCM176 kB635 MBSaved 16-bit WAV
48 kHz mono, 32-bit float192 kB691 MBSingle-channel capture

Phones have less memory available to a single tab than most laptops, and mobile browsers may close a backgrounded tab to reclaim memory. Keep mobile takes short, download each one before starting the next, and avoid switching apps mid take. If you need a long session, record several shorter takes on a computer and join them afterwards with the Audio Merger.

Trim and even out the volume

After you press Stop, you are in the review stage. Dragging the selection on the waveform sets the exact time range to keep, with boundaries stored in seconds rather than pixels. The toggles below it apply two optional operations before encoding.

  • Trim silence at the start and end removes quiet edges using a -50 dB threshold. It needs at least 0.3 seconds of quiet before it cuts and keeps 0.15 seconds of tail so words are not chopped off.
  • Even out the volume measures integrated loudness and applies one gain change: -16 LUFS in Voice mode or -14 LUFS in Music mode, both with a -1 dBTP true peak ceiling.
  • Selection trim drops anything outside the range you chose on the waveform, which is the quickest way to remove a false start.

If a take has steady hiss, fan noise or hum, leveling alone will not remove it. Use the Noise Reducer on the saved file, then check the result with the LUFS Loudness Meter. For a custom loudness target, the Audio Normalizer offers its own controls.

Open the Audio NormalizerSet an exact loudness target and a true peak ceiling on a finished recording.Open the Noise ReducerReduce steady room noise and hiss from a take after you have saved it.

Save your recording

Choose an output format under Output settings and press Save recording. The recorder encodes the selected range in a background Web Worker, validates the result and shows a downloadable file. You can also download the Raw WAV, which is the untouched 24-bit PCM capture before trimming, leveling or lossy encoding.

Output formats offered by the recorder and their default behavior
FormatTypeDefault bitrateWhen to pick it
MP3Lossy192 kbpsSharing and compatibility
M4A (AAC)Lossy160 kbpsApple devices and video work
OpusLossy96 kbpsSmall speech files where the browser supports it
FLACLosslessNot applicableEditing and archiving
WAVLossless PCMNot applicableA master for other software

MP3, M4A and Opus are lossy, meaning they reduce size by discarding detail, so do not treat them as an archive master. FLAC keeps the samples and typically takes about half the space of WAV. These encoders run locally, and the output is checked before it appears on the page.

If the finished file is large, the WAV Compressor can shrink it further by changing format, bitrate, sample rate or channels. The guide to compressing a WAV file explains the trade-offs in detail, and WAV vs MP3 compares the two common delivery formats.

Open the WAV CompressorShrink a saved WAV to MP3, M4A, Opus or FLAC and see the size difference.

Permissions and limitations

Microphone access needs a secure context, which in practice means HTTPS or localhost, and the browser's permission prompt. If you deny access, nothing is captured and the page explains the problem in plain language. Device names often appear only after the first permission grant, and a microphone already in use by a video call may be unavailable until that call ends.

  • System audio is not available. A browser page can record the microphone, not the sound coming out of your speakers or an app's internal audio.
  • Device support varies. The Microphone list shows the inputs the browser exposes. Some phones offer only one input, and device names often appear only after permission has been granted.
  • Opus export depends on WebCodecs audio encoding support. If a format is unavailable in your browser, pick another one.
  • The tab must stay open. The take lives in this tab's memory. Closing the tab or pressing Discard releases the buffers.

Capture, trimming, loudness measurement and encoding all run in the browser, so there is no upload step for the recording. That also means results depend on the device. A laptop with more free memory handles long takes more comfortably than a phone, and a quiet room makes cleanup easier on any hardware.

For the steps that follow a recording, the guide to removing background noise covers steady hiss and room tone, while the guide to normalizing audio loudness goes deeper on LUFS targets and true peaks.

Tools used in this article

Frequently asked questions

Can I record audio in a browser without installing anything?

Yes. Open the Voice Recorder, allow microphone access and press Start recording. Capture and encoding run in the browser, and there is no upload step in this workflow or account to create.

How long can one take be?

60 minutes. The recorder stops automatically at that point because float32 samples are held in memory. At 48 kHz stereo an hour of capture uses around 1.4 GB, so shorter takes are safer.

Why does my recording sound quiet?

Move closer to the microphone or raise the input volume, then check the meter. Even out the volume applies -16 LUFS in Voice mode or -14 LUFS in Music mode when you save, which raises the average level.

What does CLIP on the level meter mean?

It means the incoming samples hit the top of the scale and were distorted at capture. Lower the input level and record again; normalization cannot bring back the missing peaks.

Should I record in Voice or Music mode?

Voice requests echo cancellation, noise suppression and automatic gain control from the browser and targets -16 LUFS. Music uses raw input with no processing and targets -14 LUFS, which is better for instruments.

What happens to my recording when I leave the page?

The take stays in this tab's memory until you save or download it. The page warns before you navigate away with an unsaved take, but closing the tab releases the buffers.

Can I record a video call or system audio?

No. Browser pages can capture microphone input only. For a call, record your own voice locally and ask the other participants to record theirs.

Which output format should I use?

MP3 at 192 kbps for sharing, M4A for Apple devices, Opus for efficient speech where supported, and FLAC or WAV when you plan to edit. FLAC and WAV are lossless; MP3, M4A and Opus are not.

Related articles