Categories

Audio Change Sample Format

Change audio sample format/bit depth (e.g., s16, s24, s32, fltp)

Click to upload file or drag and drop file here

Maximum file size: 120MB Supported formats: audio/wav, audio/x-wav, audio/flac, audio/mpeg, audio/ogg, audio/opus

Key Facts

Category
Media
Input Types
file, select, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

This tool changes the sample format and bit depth of audio files. It accepts WAV, FLAC, MP3, OGG, and OPUS inputs and converts them to formats like signed 16-bit (s16), 24-bit (s24), 32-bit (s32), float (flt), or float planar (fltp).

When to Use

  • When you need to convert audio to a specific bit depth for compatibility with hardware or software that requires formats like s24 or fltp.
  • When preparing audio for professional editing or mastering where higher bit depth (e.g., s32) preserves quality during processing.
  • When reducing bit depth to s16 to optimize file size for storage or streaming without significant quality loss.

How It Works

  • Upload an audio file in a supported format (WAV, FLAC, MP3, OGG, or OPUS), up to 125 MB.
  • Select the desired sample format from the dropdown, such as s16, s24, s32, flt, or fltp.
  • Optionally check the 'Keep Metadata' box to preserve tags like artist and title in the output file.
  • Process the file to download the converted audio with the new sample format.

Use Cases

Converting podcast recordings from MP3 to s24 WAV for high-quality editing in digital audio workstations.
Reducing bit depth of FLAC files to s16 for efficient web streaming or mobile playback.
Preparing audio for specific devices, such as converting to fltp format for compatibility with certain hardware players.

Examples

1. Convert Podcast Audio to 24-bit for Editing

Podcast Producer
Background
A podcast producer has episodes recorded in MP3 format with 16-bit depth and needs to edit them in a professional DAW that works best with 24-bit audio.
Problem
The current bit depth may cause quality degradation during extensive editing and effects processing.
How to Use
Upload the MP3 file, select 'Signed 24-bit (s24)' as the sample format, and keep metadata checked to preserve episode details.
Outcome
The audio is converted to a 24-bit format, providing higher fidelity for seamless editing in the DAW.

2. Optimize Audio Files for Web Streaming

Background
A web developer has large FLAC files that need to be smaller for faster loading on a streaming website.
Problem
High bit depth files consume too much bandwidth and storage, affecting user experience.
How to Use
Upload the FLAC file, choose 'Signed 16-bit (s16)' to reduce bit depth, and process without keeping metadata if not needed.
Outcome
The audio is converted to 16-bit format, significantly reducing file size while maintaining acceptable quality for online playback.

3. Prepare Audio for Hardware Compatibility

Background
An audio engineer must ensure files play on a legacy device that only supports float planar (fltp) sample format.
Problem
The existing audio is in s16 format and won't play correctly on the target hardware.
How to Use
Upload the audio file, select 'Float planar (fltp)' from the sample format options, and process the conversion.
Outcome
The audio is converted to fltp format, ensuring it plays without issues on the specified hardware device.

Try with Samples

audio, file

Related Hubs

FAQ

What audio file formats can I upload?

You can upload WAV, FLAC, MP3, OGG, or OPUS files, with a maximum size of 125 MB.

What does sample format or bit depth mean?

Sample format defines how audio data is stored; bit depth affects dynamic range and precision, with higher values like s24 offering more detail.

Can I keep the original metadata like song titles?

Yes, enable the 'Keep Metadata' option to retain tags such as artist, album, and track information in the converted file.

What is the default sample format if I don't choose one?

The default is signed 16-bit (s16), which is widely compatible and balances quality with file size.

Is there a limit on file size or number of files?

Yes, each file must be under 125 MB, and you can process one file at a time per conversion.

API Documentation

Request Endpoint

POST /en/api/tools/audio-change-sample-format

Request Parameters

Parameter Name Type Required Description
audioFile file (Upload required) Yes -
sampleFormat select No -
keepMetadata checkbox No -

File type parameters need to be uploaded first via POST /upload/audio-change-sample-format to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-audio-change-sample-format": {
      "name": "audio-change-sample-format",
      "description": "Change audio sample format/bit depth (e.g., s16, s24, s32, fltp)",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=audio-change-sample-format",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]