How to Use the Printf Text and Number Formatter Online
- 1Enter a Format String with the placeholders you need, such as %s for text and %d for an integer.
- 2Paste one record per line with its values separated by commas or tabs.
- 3Review the output where numbers receive padding or decimals are rounded.
- 4Copy the formatted rows after checking that each input value went to the intended position.
Input & Output Examples
Use the format %s [%04d] to copy each label and write its positive number with width four.
Input Sample
Map, 7
Key, 23Expected Output
Map [0007]
Key [0023]Use %.2f%% (%X) to show two decimal places, a literal percent sign, and an uppercase hexadecimal value.
Input Sample
25 255
8.5 16Expected Output
25.00% (FF)
8.50% (10)Practical Developer Workflows
- Format repeated labels that combine a name with a zero-padded number.
- Display decimal results to the same precision across several rows.
- Create a short fixture that displays both decimal and hexadecimal forms of supplied values.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Notice a bug, calculation error, or outdated info?
Let us know directly so our engineering team can fix it.
Frequently Asked Questions
Use %s for text, %d or %i for a decimal integer, and %f for a fixed-point number. Use %x or %X for lower- or uppercase hexadecimal. Two percent signs output a literal percent sign without consuming a value.