Brian Dunning's FileMaker Custom Functions

BaseEncode ( inputInt ; base )

Base64, or base62 encode any integer

  Average rating: 4.5 (39 votes) Log in to vote

Cory Alder   Cory Alder
Davander Mobile Corporation

Share on Facebook Share on Twitter

  Sample input:
BaseEncode ( 31337 , 64 )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

BaseEncode (inputInt, base)

Base encoder by Cory Alder written in 2011.
Recursively converts any integer number from base 10 to any base up to 64.
Has only been tested on bases 64 and 62. Theoretically should work with any base below 64.
Doesn't accept non integer inputs.

Based on code by Martin Sorich 2009 nov 10 (
And on php code from Program & Design (



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: