# Audio Spectrogram Generator

Generate a spectrogram image from an audio file or a video audio track

> Canonical page: https://elysiatools.com/en/tools/audio-spectrogram-generator

- **Category:** Media

- **Keywords:** audio, spectrogram, frequency, image, ffmpeg

## Overview

Creates a PNG spectrogram with ffmpeg showspectrumpic to visualize frequency content over time. Audio files are supported directly; video files can also be uploaded and the first audio track will be used.

## Inputs

- **Audio File** (file): Select an audio or video file
- **Image Width** (text): e.g., 1200
- **Image Height** (text): e.g., 500
- **Color Scheme** (select)
- **Show Legend** (checkbox)

## When to use

- When you need to analyze the frequency distribution and noise levels of an audio recording.
- When you want to extract the audio track from a video file and visualize its spectral density.
- When you need to generate high-quality spectrogram images for audio mastering, sound design, or educational presentations.

## How it works

- Upload an audio file (such as MP3, WAV, FLAC) or a video file (such as MP4, MKV) containing an audio track.
- Configure the output image dimensions, choose a color scheme like Magma or Viridis, and decide whether to display the frequency legend.
- The tool processes the file using FFmpeg's showspectrumpic filter to map frequencies over time.
- Download the generated PNG spectrogram image showing the visual representation of your audio.

## Use cases

- Analyzing audio recordings to identify background noise, hums, or specific frequency spikes.
- Visualizing the frequency range of video soundtracks to ensure audio quality before publishing.
- Creating visual assets of sound waves for music production portfolios, podcasts, or academic reports.

## Frequently asked questions

### What file formats are supported?

You can upload common audio formats like MP3, WAV, and FLAC, as well as video formats like MP4 and MKV.

### How does the tool extract audio from video files?

The tool automatically targets and processes the first audio track found within the uploaded video file.

### What is the purpose of the color scheme option?

It changes the color palette (such as Magma, Viridis, or Fire) used to represent different frequency intensities.

### Can I display frequency and time scales on the image?

Yes, enabling the 'Show Legend' option adds frequency and time axes to the generated spectrogram.

### What is the maximum file size I can upload?

The tool supports audio and video file uploads up to 100 MB.

## Related tools

- [Image Sequence to Video](https://elysiatools.com/en/tools/image-sequence-to-video): Convert uploaded image files or a ZIP archive of frames into a video, sorted naturally by filename
- [Cover Art Embed](https://elysiatools.com/en/tools/cover-art-embed): Embed cover artwork without re-encoding media.
- [Audio to Spectrogram Video](https://elysiatools.com/en/tools/audio-to-spectrogram-video): Create a video from audio with a spectrogram visualization
- [Audio to Waveform Video](https://elysiatools.com/en/tools/audio-to-waveform-video): Create a video from audio with a waveform visualization
- [Audio Waveform Generator](https://elysiatools.com/en/tools/audio-waveform-generator): Generate a waveform image from an audio file
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown
- [Convert GIF to WebM](https://elysiatools.com/en/tools/gif-to-webm): Convert GIF images to WebM video format with modern compression and web optimization
- [Low-CPU Video Preview Generator](https://elysiatools.com/en/tools/video-preview-generator): Create a preview montage from 5-10 evenly spaced video clips without re-encoding.

## Samples

- [WebRTC Real-Time Communication Samples](https://elysiatools.com/en/samples/webrtc-samples): Comprehensive WebRTC samples for peer-to-peer audio/video communication, data channels, screen sharing, and signaling server implementation
- [Bevy Game Engine Samples](https://elysiatools.com/en/samples/bevy-samples): Bevy Rust game engine examples with ECS, 2D/3D graphics, audio, and game mechanics implementations
- [Copyright-Free FLAC Audio Samples](https://elysiatools.com/en/samples/flac-samples): Lossless FLAC audio samples for testing and development, mirrored from MP3 set with nature sounds and meditation music
- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio

## Related content

- [Audio Analysis and Visualization Tools](https://elysiatools.com/en/hubs/audio-analysis-and-visualization-tools): Visualize audio, inspect stereo, diagnose signal and timing, and check files before delivery.
