βš™οΈSAPTools
πŸ”

Base64 Encoder / Decoder

Utilities

Encode and decode Base64 strings. Essential for SAP integrations, ABAP development, and working with binary data in OData services and REST APIs.

"" Base64 Encode in ABAP
DATA: lv_input  TYPE string VALUE 'Hello SAP World',
      lv_b64    TYPE string.

cl_http_utility=>encode_base64(
  EXPORTING unencoded = lv_input
  RECEIVING encoded   = lv_b64 ).
WRITE lv_b64.

"" Base64 Decode in ABAP
DATA: lv_decoded TYPE string.
cl_http_utility=>decode_base64(
  EXPORTING encoded  = lv_b64
  RECEIVING decoded  = lv_decoded ).
WRITE lv_decoded.

Advertisement

About Base64 Encoder / Decoder

Base64 shows up constantly in SAP integrations β€” binary attachments in IDocs, image data in Fiori apps, and payloads passed through CPI adapters. This tool encodes and decodes Base64 strings entirely in your browser, which is faster than round-tripping through an ABAP report just to check if a string decodes cleanly.

How to use this tool

  1. Paste a Base64 string to decode it, or paste plain text to encode it.
  2. Switch between text and hex output modes depending on the payload.
  3. Use it to sanity-check XSTRING conversions before wiring them into CL_HTTP_CLIENT or CPI mappings.
  4. Copy the result to compare against what your ABAP CL_BASE64 conversion actually produced.

All processing happens locally in your browser. No data is sent to any server. Your SAP code and business data remain private at all times.