Home .NET ASP.NET Converting Hexadecimal string to byte .NETASP.NET Converting Hexadecimal string to byte[] By Raúl Ribeiro - 07/09/2005 29 0 Facebook Twitter Linkedin WhatsApp string hexString = txtHex.Text; int discarded; txtByteCount.Text = ((int)HexEncoding.GetByteCount(hexString)).ToString(); txtLength.Text = hexString.Length.ToString(); byte[] byteArray = HexEncoding.GetBytes(hexString, out discarded); RELATED ARTICLESMORE FROM AUTHOR ASP.NET Redirecting 2 domains from http to https and non-www to www ASP.NET Raven.Studio.zip Index.html not available ASP.NET RavenDB embedded with ASP NET Core web API Angular Adding an Angular app to your Umbraco Website Nuget How to add your custom content files into a nuget package (for Visual Studio) LEAVE A REPLY Cancel reply Please enter your comment! Please enter your name here You have entered an incorrect email address! Please enter your email address here Save my name, email, and website in this browser for the next time I comment. Notify me of follow-up comments by email. Notify me of new posts by email.