Powershell Tip #137: Convert number to binary By powershellgu | November 18, 2018 0 Comment Tip: You can convert a number (64) to binary (1000000). PowerShell # Decimal > Binary [Convert]::ToString(64,2) # Binary > Decimal [Convert]::ToInt32('1000000',2) 12345 # Decimal > Binary[Convert]::ToString(64,2) # Binary > Decimal[Convert]::ToInt32('1000000',2) You can see the overload defintions of the ToString method from the Convert class: