# Regular expression for BPM to reduce decimals

**URL:** https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936
**Category:** Support
**Created:** [March 24, 2026, 6:10pm UTC](https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936 "2026-03-24T18:10:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Dirkzwembad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@Dirkzwembad](https://community.mp3tag.de/u/Dirkzwembad)
#### Post date: [March 24, 2026, 6:10pm UTC](https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936/1 "2026-03-24T18:10:03Z")

</div>

I have approximately 15,000 MP3 files with a BPM detail that, for example, has a value of 70.250000 or 70 or 138.540000.  
I want to change this to 70,2 or 138,5 or 70,0.  
Who can help me?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 24, 2026, 6:18pm UTC](https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936/2 "2026-03-24T18:18:51Z")

</div>

Try Convert\>Tag-Tag or and action of the type "Format value" for BPM  
Format string: `$regexp(%bpm%,(\d+\.\d).*,$1)`

Just a remark: as it is "beats per minute" you have to have a track of 5 minutes length to be 1 beat off. I doubt that anybody will notice.

Decimal values in BPM show IMHO that a human has set the beat - and that human beat is a bit irregular.  
Or it shows that a track has different speeds. And then the average beats do not describe the characteristics of such a piece.

---

<div class="post-metadata">

### Author: ![Dirkzwembad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@Dirkzwembad](https://community.mp3tag.de/u/Dirkzwembad)
#### Post date: [March 24, 2026, 6:56pm UTC](https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936/3 "2026-03-24T18:56:47Z")

</div>

can you give me a format string that i just get3 digits, no points of decimal?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 24, 2026, 6:57pm UTC](https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936/4 "2026-03-24T18:57:49Z")

</div>

Try  
Format string: `$num(%bpm%,1)`

---

<div class="post-metadata">

### Author: ![Dirkzwembad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@Dirkzwembad](https://community.mp3tag.de/u/Dirkzwembad)
#### Post date: [March 24, 2026, 7:00pm UTC](https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936/5 "2026-03-24T19:00:20Z")

</div>

Perfect, thanks for the support

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [March 31, 2026, 7:00pm UTC](https://community.mp3tag.de/t/regular-expression-for-bpm-to-reduce-decimals/70936/6 "2026-03-31T19:00:48Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
