NUMFMT(1) >>>>>>>>>> >>>>>>> NUMFMT(1)
>>>>>
numfmt - Convert numbers from/to human-readable strings
>>>>
numfmt [>>>>>>]... [>>>>]...
>>>>
>>>>>>>>>>> >>>>(>>>), >>>
>>>>>>> >> >>>>>>>>>>>
>>>>> >>> >>>>>>> >>>>
>>>>>>>.
>>>>>>>> >>>>>>>>> >>
>>>> >>>>>> >> >>>>>>>> >
>> >>>>>> >>>>>> >>>>>>.
--debug
>>>>>>>> >>>>>>>>> >
>>>>>>>>>>> >>>>>
-d, --delimiter=X
>>>>>>> > >>>>>>
>>>>>>>> >> >>>>>>>>>
>>>>
--field=>>>>
replace the numbers in these input fields (default=1); see
FIELDS below for details
--format=>>>>>
>>>>>>> >>>>>
>>>>>>>>> >>>>>> > ,,printf"
>>>>>; >>>>>> >>>>>
>>>>> >> >>>>>>>>>>>
--from=>>>>>>>>
auto-scale input numbers to UNITs; default is 'none'; see UNIT
below for details
--from-unit=N
>>>>>>>> >>>>>>
>>>>>>>> >>>>>>>>
(>>>>>> >>>>>>>> 1)
--grouping
use locale-defined grouping of digits, e.g. 1,000,000. This has
no effect in the C/POSIX locale
--header[=N]
>>>>>>>> (>>>
>>>>>>>>>>) >>>>> N
>>>>>> >>>>>>>>; >> N >>
>>>>>>>>>>> 1 >>> >>>>
>>>>>>>>
--invalid=>>>>>
>>>>> >>>>>>>> >>
>>>>>>>>>> >>>>>>>:
>>>>> >>>> >>>>: ,,abort" --
>>>>>>> (>>>>>>>), ,,fail" --
>>>>>>>, ,,warn" -- >>>>>>>,
,,ignore" -- >>>>>>>>
--padding=N
>>>>>>>> >>>>> >> N
>>>>>>>; >>>>>>>>> N >>
>>>>>>>>> >> >>>>>;
>>>>>>>>> N >> >>>>>>>>>
>> >>>>; >>>>>>>>>> >>
>>>>>>>>>> >>> >> >>>>>
>>>> >> N; >>>>>>> >>
>>>>>>>>>> >>>>>>>>>>
>>> >> >>>>>>> >>>>>>>>
--round=>>>>>
>>>>>>> >>>>> >>
>>>>>>>>>>>> >>>>>>>>
>>>>>>>>>>>>; >>>>>
>>>> >>>>: ,,up" -- >>>>, ,,down" --
>>>>, ,,from-zero" -- >> >>>>
(>>>>>>>), ,,towards-zero" -- >>>>>
>>>>, ,,nearest" -- >>>>>>>>
--suffix=>>>>>>
>>>>>> >>>>>> >>>>>>>>
>>>>>>>>>, > >>>>>>>>
>>>>>>> >>>>>> >
>>>>>>> >>>>>>>>>
--unit-separator=SEP
insert SEP between number and unit on output, and accept an
optional SEP in input numbers
--to=>>>>>>>>
>>>>>>>>>> >>>>>>>>>>
>>>>>>> >>>>>>> >>
>>>>>>>>; >>>>>> >>>>>
>>>>>>>>
--to-unit=N
>>>>>>>> >>>>>>>
>>>>>>>> (>>>>>>
>>>>>>>> 1)
-z, --zero-terminated
>>>>>>>>>>> >>>> >>
>>>>>, >> >>>> >>>
--help >>>>>>>>> >>> >>>>> >
>>>>>>
--version
>>>>>>>> >>>>>>> >
>>>>>> > >>>>>>
>>>>>> >>>>>>>>:
none >> >>>> >> >>>>>>>>>>
>>>>>>>>>>>>; >>>>>>>
>> >>>>>>> >>>>>>
auto accept optional single/two letter suffix: 1K = 1000, 1k = 1000,
1Ki = 1024, 1M = 1000000, 1Mi = 1048576,
si accept optional single letter suffix: 1k = 1000, 1K = 1000, 1M =
1000000, ...
iec accept optional single letter suffix: 1K = 1024, 1k = 1024, 1M =
1048576, ...
iec-i accept optional two-letter suffix: 1Ki = 1024, 1ki = 1024, 1Mi =
1048576, ...
>>>> >>>>>>>>>> >>>>>> >>>>
> >>>>> cut(1):
N N->> >>>>, >>>>>>> >> 1
N- >> N->>> >>>>, >> >>>>>
>>>>
N-M >> N->>> >> M->>> >>>>
(>>>>>>>>)
-M >> >>>>> >> M->>> >>>>
(>>>>>>>>)
- >>> >>>>
>>>> >>>>/>>>>>> >>>> >>>>
>>>>>>>>>> >>>>>>>>.
>>>>> >>>> >>>> >>>>>>> >>
>>>>>>>>>> >>>>>>
>>>>>>>>> >> >>>>>>>>>
>>>>>>> ,,%f". >>>>>>>
>>>>>>>> (%'f) >> >>>>>>>>
--grouping (>>> >> >>>>>>>>
>>>>>>> >>>>>>>). >>>>>>>
>>>>>>>> >>>>>> (%10f) >>
>>>>>>>> >>>>>. >>>>>>>
>>>>> (%010f) >>>>>> >> >>>>>
>>>>>>>> >>>>. >>>>>>>
>>>>>>>>> >>>>>>>>> (%-10f) >>
>>>>>>>> > >>>>. >>>>>>>
>>>>>>> (%.1f) >> >>>>>>>>>
>>>>>> >>>>>>>> >>>>>>>.
Exit status is 0 if all input numbers were successfully converted. By
default, numfmt will stop at the first conversion error with exit
status 2. With --invalid='fail' a warning is printed for each
conversion error and the exit status is 2. With --invalid='warn' each
conversion error is diagnosed, but the exit status is 0. With
--invalid='ignore' conversion errors are not diagnosed and the exit
status is 0.
>>>>>>>
$ numfmt --to=si 1000
-> "1.0k"
$ numfmt --to=iec 2048
-> "2.0K"
$ numfmt --to=iec-i 4096
-> "4.0Ki"
$ echo 1K | numfmt --from=si
-> "1000"
$ echo 1K | numfmt --from=iec
-> "1024"
$ df -B1 | numfmt --header --field 2-4 --to=si
$ ls -l | numfmt --header --field 5 --to=iec
$ ls -lh | numfmt --header --field 5 --from=iec --padding=10
$ ls -lh | numfmt --header --field 5 --from=iec --format %10f
>>>>>
>>>>>>> >> >>>> >>>>>>.
>>>>>>>>>>>> >>>>>>>
>>>>>> >>>>>>>>> >>:
bug-coreutils@gnu.org
>>> coreutils >>>>>>> >>>>>>>>:
>>>>> >>>>> >> >>>>>>>>>
>>> >>>>>>>>:
>>>>>> > >>>>>>>
>>>>>>>>> >>
>>>>>>>> >>>>>
Copyright (C) 2026 Free Software Foundation, Inc. >>>>>>>
>>>>3+: >>> >>> >>>>>> 3 >>>
>>>>>>> .
>>> >> >>>>>>>> >>>>>>>:
>>>>>>>> >>> >> >> >>>>>> >
>>>>>>>>>>>>>. >> >>>>>>>
>>>>>>> >>>>>>>>>, >
>>>>>>>> >>>>>>>>>>
>>>>>>>.
>>>>>> >>>>>>
>>> >>>>>>>>>>>>> >>
>>>>>> >>
>>> >> >>>>>>>> >>
>>>>>>>> >>>>> >>>>>>> ,,info
'(coreutils) numfmt invocation'"
>>>>>>
>>>>>> >>>>>> >>>
>>>>>>>> >> >>>>>>>>>>>
>>> >>>>>>>>>
>>>> >>>>>> >> >>>>>>>>>
>>>>>>>>>>>>>; >> >>>>>>
>>>>>>>>> >>>>>
>>>>>>>>>> >>> >>>>>
>>>>> >>>>>>> >>>>>>> 3
>>>
>>>>>>. >> >>>>>>>>>>
>>>>>>> >>>>>>>>>>>.
>>> >>>>>>>>> >>>>>> >
>>>>>>> >>> >>>>>>>>
>>>>>>>>>>, >>>>>>>>
>->>>>>> TODO <>.
>>> coreutils 9.11 >>>>>> 2026 NUMFMT(1)