kotlin-stdlib / kotlin.text / HexFormat / UpperCase UpperCase Common JVM JS Native 1.0 val UpperCase : HexFormat (source) Uses upper case hexadecimal digits 0-9 , A-F when formatting both ByteArray and numeric values. That is upperCase is true . The same as Default format in other aspects.