Formula - base64decode
Easily decode base64-encoded data using the Nodinite base64decode Formula plugin. This page shows how to decode base64 strings from message Content, Context, or the output of other formulas.
🎯 Designed for business users and integrators — no developer required; you can even use AI to craft expressions.
- ✅ Decode base64 data from any Payload or Context in any Log Event
- ✅ Support for character encodings like UTF-8, ISO-8859-1, and more
- ✅ Transform and surface meaningful data in Nodinite Log Views, search filters, and self-service diagnostics
- ✅ Combine with other Formula functions for powerful, layered expressions
What does the base64decode Formula do?
The base64decode(Content) or base64decode(Content, 'Encoding') Formula function decodes a base64-encoded string back to its original format. Use it on message bodies, context values, or the results from other Formula functions to decode data in your views.
How it works: Input ➜ base64decode ➜ Result
Flow: The base64-encoded content is decoded to its original text format, optionally using a specified character encoding.
Examples
Example 1: Decode base64 from message body
Input
Message body is Tm9kaW5pdGU=
Formula Expression
base64decode(body)
Result
Nodinite
Example 2: Decode base64 with ISO-8859-1 encoding
Input
Message body is U2tlbGxlZnRl5Q==
Formula Expression
base64decode(body, 'iso-8859-1')
Result
Skellefteå
Example 3: Decode base64 with UTF-8 encoding
Input
Message body is U2tlbGxlZnRlw6U=
Formula Expression
base64decode(body, 'UTF-8')
Result
Skellefteå
Example 4: Decode base64 from context value
Input
Message context contains a property id with value bm9kaW5pdGU=
Formula Expression
base64decode(context('id'))
Result
nodinite
Example 5: Decode base64 from nested formula result
Input
Message body is:
[ { "name": "YXdlc29tZQ==" }, { "name": "ZnVuY3Rpb24=" } ]
Formula Expression
base64decode(jsonpath('$..name',body))
Result
awesome, function
Features
Important
The
base64decodeFormula converts base64-encoded strings back to their original text or binary format, making it easier to view and analyze encoded data in Nodinite. You can optionally specify a character encoding (e.g., UTF-8, ISO-8859-1) when decoding the string.
- Flexible Inputs: Decode from message body, Context, or the result of another Formula
- Encoding Support: Optionally specify encoding (e.g., UTF-8, ISO-8859-1) to handle different character sets (see List of encodings)
- Composable: Combine with other Formula functions like jsonPath or xPath for advanced transformations
- Self-Service: Let business users decode and analyze base64 content without developer intervention
- Performance Note: This function loads the entire message into RAM—use on small messages only
How to use
To use the base64decode Formula in a Search Field Expression:
- Open your Nodinite Web Client
- Navigate to Administration → Search Fields
- Create or edit a Search Field
- Choose Formula as the expression type
- Enter one of the following Syntax patterns
Syntax
Decode message body:
base64decode(body)
Decode message context property:
base64decode(context('PropertyName'))
Decode with nested formula (jsonPath example):
base64decode(jsonpath('$..name', body))
Decode with specific encoding (UTF-8):
base64decode(body, 'UTF-8')
Decode with specific encoding (ISO-8859-1):
base64decode(body, 'iso-8859-1')
Next step
- Learn how to create a Search Field with an Expression
Related Topics
- Search Field
- Search Field Expressions
- Formula
- The base64encode Formula
- The convert Formula
- The toLower Formula
- The toUpper Formula
- The jsonPath Formula
- The xPath Formula




