# .wma

> The `.wma` (Windows Media Audio) is an obsolete proprietary audio format developed by Microsoft that browsers cannot play.

> **Deprecated.** Browsers cannot play this format. Use `.mp3`, `.aac` or `.opus` for web audio. Use instead: [.mp3](https://wonderium.dev/engineering/mp3.md), [.aac](https://wonderium.dev/engineering/aac.md), [.opus](https://wonderium.dev/engineering/opus.md).

## Can browsers play WMA files, and what should I use instead?

The obsolete proprietary audio format developed by Microsoft for Windows media players. Browsers cannot play it, so web audio uses `.mp3`, `.aac` or `.opus` with the native `<audio>` element.

- Topic: Audio
- Type: format

## Example

Wrong:

```html
<embed src="lecture.wma"
  type="audio/x-ms-wma">
```

Right:

```html
<audio controls>
  <source src="lecture.m4a" type="audio/mp4">
  <source src="lecture.mp3" type="audio/mpeg">
</audio>
```

Browsers cannot decode WMA, so the audio is converted to AAC and MP3 and played with the native `<audio>` element.

## Common mistakes

- Linking `.wma` files on a page and getting silent players in every browser.
- Converting low bit rate WMA to a high bit rate MP3, which makes the file bigger but not better.

## Key points

- Web audio uses `.mp3`, `.aac` or `.opus` with `<audio>`, never `.wma` or a Windows Media plugin.
- Existing WMA files are converted once at build or upload time, not linked directly.

## Interview questions

### How do I convert WMA to MP3?

Use an audio converter or FFmpeg, for example `ffmpeg -i in.wma -b:a 192k out.mp3`. Keep the bit rate close to the original.

### Is WMA lossless?

Standard WMA is lossy. A separate WMA Lossless variant exists, but browsers cannot play either one.

## Related cards

- [.mp3](https://wonderium.dev/engineering/mp3.md)
- [.aac](https://wonderium.dev/engineering/aac.md)
- [.opus](https://wonderium.dev/engineering/opus.md)

---

- Level: [Engineering](https://wonderium.dev/engineering.md)
- HTML version: https://wonderium.dev/engineering/wma
- Last updated: 2026-11-25
