MARKETPLACE
PLUGINS
CONVERT NUMBER TO K M B
Convert Number to K M B logo

Convert Number to K M B

Published December 2025
   •    Updated December 2025

Plugin details

Format large numbers into clean, compact, human-readable values like 1.2K, 15M, or 1.2B — without workflows, actions, or guesswork.
This element always auto-detects the best suffix
and never jumps early.
You can clamp, format, and style — but the math is stable.

Short Number Formatter is an invisible Bubble element that automatically converts any number into a stable K / M / B format. It is designed for dashboards, analytics, counters, finance apps, and any UI where large numbers need to be readable and predictable.

Unlike many formatters, this plugin never jumps to the next suffix early (e.g. 999,999 → 999K, not 1M) and avoids confusing edge cases. Just bind your number, and read the formatted result dynamically.

$3

One time

stars   •   0 ratings
0 installs  
This plugin does not collect or track your personal data.

Platform

Web

Contributor details

Abdelhamid Ben hamou logo
Abdelhamid Ben hamou
Joined 2024   •   14 Plugins
View contributor profile

Instructions

Instructions (How to Use)
Drag Short Number Formatter onto the page
(It is invisible — position does not matter)

Set the number input to any dynamic value
(e.g. views, followers, search count, revenue)

Read the result using one of the exposed states:

formatted_text → display to users

numeric_value → use in logic or charts

suffix_used → style separately if needed

That’s it.
No workflows required.

The best thing is to check how i set it up on the editor.


Inputs (Fields Explained)


🔢number (number)

The value to format.

Examples

15400000

This Thing's views

Search for Orders:count

🔢 decimals (number)

Maximum number of decimal places to show after shortening.

Examples

Value Decimals Output
1200        1            1.2K
1200        0             1K
1500000 2             1.5M

Default recommended: 1

🔄 rounding_mode (text)

Controls how decimals are rounded.

Options

floor

round

ceil

Examples

Raw       Mode    Result
1.24 floor 1.2
1.25 round 1.3
1.21 ceil        1.3


⬇️ min_suffix (text)

The minimum suffix that can be used.

Options

none

K

M

B

Examples

Value min_suffix Output
950 none 950
950 K 0.9K
12000 K 12K
⬆️ max_suffix (text)

The maximum suffix that can be used.

Options

K

M

B

Examples

    Value    max_suffix   Output
1,200,000 K                1200K
1,200,000 M                 1.2M



0️⃣ zero_behavior (text)

Controls what is displayed when the number is exactly 0.

Options

zero → displays 0

dash → displays —

empty → displays nothing

Useful for dashboards and analytics UIs.

✂️ trim_trailing_zeros (yes/no)

Removes unnecessary trailing zeros from decimals.

Examples

Value Trim Output
1.0K yes           1K
1.0K no          1.0K

Default recommended: yes


📤 Exposed States (What You Read)


📝 formatted_text (text)

The final formatted value.

Example

15M


👉 This is what you usually display in a Text element.

🔢 numeric_value (number)

The numeric part after shortening, without the suffix.

Example

15


Useful for:

Charts

Comparisons

Conditional logic

🔠 suffix_used (text)

The suffix applied to the number.

Values

K

M

B

empty (if no suffix)

Useful for:

Styling suffix separately

Advanced UI layouts


Demo:
https://testlpu.bubbleapps.io/version-test/convert_number_to_k_m_b

Editor:
https://bubble.io/page?id=testlpu&test_plugin=1766088570663x513845707497013250_current&tab=Design&name=convert_number_to_k_m_b&type=page

Types

This plugin can be found under the following types:

Categories

This plugin can be found under the following categories:

Resources

Support contact
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble