Pretty Bytes
Convert a byte count into a human readable string such as 1337 to 1.34 kB, with metric or IEC units, signed numbers, locale decimal separators and a maximum unit choice.
Pretty Bytes on GitHub sindresorhus/pretty-bytes is a free MIT byte formatter, npm pretty-bytes 7.2.0 Node 20 or above, converts a byte count to a human readable string such as 1337 to 1.34 kB with metric or IEC units signed numbers locale decimal separators and maximum unit choice, no sold commercial tier (data as of Nov 23, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Pretty Bytes free?
Pretty Bytes: Pretty Bytes is free open-source software released under the MIT license; the pretty-bytes package latest 7.2.0 on npm has Node 20 or above, published Sep 26, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Pretty Bytes free?
The code is free to self-host, but a hosted plan from the vendor may not be. Pretty Bytes publishes its source, so cost depends on where you run it.
How much does Pretty Bytes cost?
Pretty Bytes is free open-source software released under the MIT license; the pretty-bytes package latest 7.2.0 on npm has Node 20 or above, published Sep 26, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Pretty Bytes's current pricing?
On Pretty Bytes's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Pretty Bytes?
The function takes a byte number and returns a compact string with the closest unit, switching between kB and KiB depending on the chosen standard, and supports signed inputs and locale-aware decimal marks. It is commonly used in download lists, storage dashboards and build output to show file sizes at a glance.
How does pricing work?
The package installs free under its MIT license with no seat license; it bundles into the frontend app or runs in-process, and any commercial support or managed service would be outside the open-source project.
How does Pretty Bytes compare with other tools in Dev Workflow & Productivity?
Pretty Bytes is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Pretty Bytes | Open source | Pretty Bytes is free open-source software released under the MIT license; the pretty-bytes package latest 7.2.0 on npm has Node 20 or above, published Sep 26, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
| Filesize | Open source | Filesize is free open-source software released under the BSD-3-Clause license; the filesize package latest 11.0.35 on npm has Node 10.8.0 or above, published Nov 18, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
| Byte Size | Open source | Byte Size is free open-source software released under the MIT license; the byte-size package latest 9.0.2 on npm has Node 12.17 or above, published Oct 15, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Pretty Bytes's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: Pretty Bytes is free open-source software released under the MIT license; the pretty-bytes package latest 7.2.0 on npm has Node 20 or above, published Sep 26, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Filesize
Lightweight zero-dependency file size utility that converts bytes to human-readable strings with localization support, custom units, base choice, precision, suffix styles and full byte or bit output.
Byte Size
Isomorphic byte formatter that converts a bytes or octets value such as 34565346 into a human-readable string like 34.6 MB, choosing between metric SI and IEC binary units with locale and precision options.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 23, 2026
