Skip to content

Base conversion

Provides conversion expressions for numbers in different bases.

Authors and contributors to this community extension: Ahnaf30e.

Adds expressions to convert numbers to a different base and back. Can be used to convert hexadecimal / binary representations of numbers to decimal numbers and vice-versa.


Learn how to install new extensions by following a step-by-step guide.


Expression Description
BaseConversion::ToBase(number, number) Converts a number to a trsing representing it in another base.
🔢 Number Number to convert
🔢 Number The base to convert the number to
BaseConversion::ToDecimal(string, number) Converts a string representing a number in a different base to a decimal number.
string String representing a number
🔢 Number The base the number in the string is in

This page is an auto-generated reference page about the Base conversion extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.