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.
Syntax
Decode from message body (default UTF-8): (See Example 1)
base64decode(body)
Decode with specific encoding (ISO-8859-1): (See Example 2)
base64decode(body, 'iso-8859-1')
Decode with UTF-8 encoding: (See Example 3)
base64decode(body, 'UTF-8')
Decode from message context: (See Example 4)
base64decode(context('MessageContextKey'))
Decode from nested formula: (See Example 5)
base64decode(jsonpath('$.path', body))
Supported encodings: UTF-8, ISO-8859-1, ASCII, UTF-16, and more.
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
- See Syntax section above for common patterns and usage examples
Next step
- Learn how to create a Search Field with an Expression
Related Topics
- What is Formula?
- base64encode - Encode data to base64 format
- convert - Fix character encoding issues
- jsonpath - Extract data from JSON
- xpath - Extract data from XML
- Expression Type Plugins are used in Search Fields
- What are Search Field Expressions?
- What are Log Views?




