- 3 minutes to read

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

graph LR A["Input: Base64-encoded string"] --> B["base64decode(Content, 'Encoding')"] B --> C["Result: Decoded text"]

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 1


Example 2: Decode base64 with ISO-8859-1 encoding

Input

Message body is U2tlbGxlZnRl5Q==

Formula Expression

base64decode(body, 'iso-8859-1')

Result

Skellefteå

Example 2


Example 3: Decode base64 with UTF-8 encoding

Input

Message body is U2tlbGxlZnRlw6U=

Formula Expression

base64decode(body, 'UTF-8')

Result

Skellefteå

Example 3


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 4


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

Example 5


Features

Important

The base64decode Formula 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:

  1. Open your Nodinite Web Client
  2. Navigate to AdministrationSearch Fields
  3. Create or edit a Search Field
  4. Choose Formula as the expression type
  5. 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