Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

I provide conversion methods for common data types in ColdFusion.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tests

DatatypeConverter.cfc - Converts Between Various Data Formats In ColdFusion

by Ben Nadel (

The DatatypeConverter.cfc is a ColdFusion component that provides shorthand functions for converting between common data types. The following conversion methods are provided:

  • base64ToBinary( String base64Value )
  • base64ToHex( String base64Value )
  • base64ToString( String base64Value )
  • binaryToBase64( Any binaryValue )
  • binaryToHex( Any binaryValue )
  • binaryToString( Any binaryValue [, String charset = "utf-8"] )
  • hexToBase64( String hexValue )
  • hexToBinary( String hexValue )
  • hexToString( String hexValue )
  • stringToBase64( String stringValue )
  • stringToBinary( String stringValue [, String charset = "utf-8"] )
  • stringToHex( String stringValue )

Some of these methods are simply more "readable" versions of existing, built-in ColdFusion functions.

Something went wrong with that request. Please try again.