DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
To Binary
Converts data to a string of 1s and 0s.
ID:
to-binary
Category: Data format
Aliases: binary encode, str2bin
#
Arguments
Argument
Type
Default
Constraints
Delimiter
option
"Space"
Space, Comma, Semi-colon, Colon, Line feed, CRLF, None
Byte length
number
8
Minimum: 1. Maximum: 64. Width to pad each value to. 8 is a byte; 7 is enough for ASCII.