Converting Base64 to an image in Business Central is a one-step process when you use a browser-based decoder that runs entirely on your device. Base64 is a text encoding of binary image data, often used in Business Central to embed logos, signatures, or report attachments without external file links. The Base64 to Image Converter tool on this site accepts strict RFC 4648 Base64 strings or data URLs (prefixed with data:image/…;base64,), validates the decoded bytes against known image formats, and generates a live preview with file size, dimensions, and detected format. Once verified, you can download the image as a PNG, JPEG, GIF, or WebP file with the correct extension—all without uploading the data to a server. This keeps sensitive Business Central attachments private and compliant with company data policies.

In Business Central, Base64 image data often appears in email attachments, API payloads, or embedded report images. For example, a sales invoice report might include a company logo encoded as Base64 to avoid broken links. Instead of writing AL code to decode the string, you can copy the Base64 data from the report or email, paste it into the converter, and download the image instantly. The tool also handles data URLs, which are common in web applications and integrations. Because the conversion happens in your browser, there’s no risk of exposing confidential data to third-party servers, making it ideal for finance, healthcare, or government workflows that require strict data sovereignty.

how to convert base64 to image in business central
how to convert base64 to image in business central

Why Base64 Appears in Business Central

Base64 encoding is used in Business Central for three main reasons: portability, security, and compatibility. First, Base64 allows binary image data to be embedded directly in text-based formats like JSON, XML, or email bodies. This eliminates the need for separate file attachments, reducing the risk of broken links or missing files. Second, Base64 strings can be safely transmitted over protocols that only support text, such as SMTP or HTTP headers. Third, Business Central’s web client and APIs often return images as Base64 to avoid cross-origin issues or mixed-content warnings in browsers. For example, when you export a report as PDF, any embedded images are typically encoded as Base64 to ensure they render correctly regardless of the user’s network or device.

Another common scenario is integrating Business Central with external systems. APIs like Microsoft Graph, Shopify, or custom middleware often return image data as Base64 strings. Instead of writing a custom AL function to decode these strings, you can use the Base64 to Image Converter to quickly turn the data into a usable image file. This is especially useful for non-developers or teams that need a fast, no-code solution for troubleshooting or ad-hoc tasks.

How to Extract Base64 Data from Business Central

Before you can convert Base64 to an image, you need to extract the encoded string from Business Central. Here’s how to locate it in different contexts:

  • Email Attachments: Open the email in Business Central, right-click the embedded image, and select “Inspect” (in Chrome or Edge). Look for an img tag with a src attribute starting with data:image/…;base64,. Copy the entire string after the comma.
  • API Responses: When calling an external API from Business Central, the response may include Base64-encoded image data. Use the AL debugger or Postman to inspect the payload, then copy the Base64 string from the JSON or XML response.
  • Report Embedded Images: In the Business Central report designer, images added via the “Embedded” property are stored as Base64. To extract the data, export the report as an RDLC file, open it in a text editor, and search for Base64String. The encoded data appears between the tags.
  • Document Attachments: If an image is attached to a document (e.g., a sales order), open the attachment in Business Central, then use the browser’s developer tools to inspect the network request. Look for a response containing a Base64 string or data URL.

Once you’ve copied the Base64 string, you’re ready to convert it to an image using the tool. The next section walks through the exact steps.

Convert Base64 to Image in Business Central: Step-by-Step

Follow these steps to decode Base64 image data from Business Central and download the file locally:

  1. Copy the Base64 String: Extract the Base64 data from Business Central (as described above) and copy it to your clipboard. Ensure the string is either:
    • A strict RFC 4648 Base64 string (no prefix), or
    • A data URL in the format data:image/[format];base64,[data] (e.g., data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...).
  2. Open the Converter: Navigate to the Base64 to Image Converter tool in your browser. No installation or sign-up is required.
  3. Paste the Data: Click the input field and paste the Base64 string or data URL. The tool automatically detects the format and begins decoding.
  4. Verify the Preview: After a few seconds, the tool displays:
    • A live preview of the decoded image.
    • The detected format (PNG, JPEG, GIF, or WebP).
    • The decoded dimensions (e.g., 800x600 pixels).
    • The file size in bytes (e.g., 125 KB).
    If the data is invalid or corrupted, the tool shows an error message instead.
  5. Download the Image: Click the “Download” button. The tool saves the image with the correct file extension (e.g., logo.png) to your device. You can now upload it back to Business Central, share it via email, or use it in other applications.

This process works for any Base64 image data from Business Central, whether it’s a company logo, a scanned receipt, or a signature from a customer order. Because the conversion happens locally, you don’t need to grant the tool access to your Business Central environment or worry about data leaks.

Business Central Use Cases for Base64 Images

Here are practical scenarios where converting Base64 to an image in Business Central is useful:

Scenario Base64 Source Why Convert?
Company Logos in Reports Embedded in RDLC report definitions Extract the logo to update branding or reuse it in other documents.
Customer Signatures Stored in sales order attachments as Base64 Download the signature as an image for legal records or printing.
API Integrations Returned by external APIs (e.g., Microsoft Graph, Shopify) Convert API responses to images for use in Business Central documents.
Email Attachments Embedded in emails as data URLs Extract images from emails to attach to records or save locally.
Document Scans Uploaded via mobile apps or third-party scanners Decode scans to verify content or share with colleagues.

For example, if a customer sends an invoice via email with a Base64-encoded logo, you can extract the logo using the converter and attach it to the corresponding sales order in Business Central. Similarly, if an API returns a product image as Base64, you can decode it and use it in a custom report or dashboard.

Troubleshooting Common Issues

If the Base64 to Image Converter fails to decode your data, check for these common issues:

  • Missing Prefix: Data URLs must start with data:image/[format];base64,. If the prefix is missing, add it manually (e.g., data:image/png;base64, for PNG files).
  • Corrupted Data: Base64 strings must be a multiple of 4 characters long. If the string is truncated or contains extra characters (e.g., spaces, line breaks), remove them before pasting.
  • Unsupported Format: The tool supports PNG, JPEG, GIF, and WebP. If your Base64 data represents a different format (e.g., BMP, TIFF), you’ll need to convert it to a supported format first using another tool like the WebP Converter.
  • Non-Image Data: Ensure the Base64 string actually encodes an image. Some APIs return Base64-encoded PDFs or other file types, which the tool cannot decode as images.
  • Browser Cache: If the tool doesn’t update after pasting new data, clear your browser cache or try a private/incognito window.

For large images (e.g., over 10 MB), the conversion may take a few extra seconds, but the tool will still work as long as your browser has enough memory. If you frequently work with large files, consider using the Image Compressor to reduce the file size before encoding it as Base64.

Alternatives to Base64 in Business Central

While Base64 is convenient for embedding images, it’s not always the best choice. Here’s how it compares to other methods for handling images in Business Central:

Method Pros Cons Best For
Base64 Encoding No external dependencies; works in emails and APIs. Increases file size by ~33%; harder to debug. Embedded images in reports or emails.
File Attachments Original file size; easy to update. Requires separate storage; risk of broken links. Large images or frequent updates.
URL Links No size increase; easy to share. Requires internet access; privacy concerns. Publicly hosted images (e.g., product photos).
Blob Storage (Azure) Scalable; secure; supports large files. Requires Azure setup; adds complexity. Enterprise deployments with high image volumes.

For most Business Central users, Base64 is ideal for small, frequently used images like logos or signatures. However, for large files or images that change often, file attachments or Azure Blob Storage may be more efficient. If you’re unsure which method to use, the Base64 to Image Converter can help you test and validate Base64 data before committing to it in your workflows.

Next Steps After Converting Base64 to Image

Once you’ve decoded the Base64 data into an image, you can use it in several ways within Business Central:

  • Upload to Records: Attach the image to a customer, item, or document record in Business Central. For example, upload a decoded product photo to the corresponding item card.
  • Use in Reports: Add the image to a custom report or dashboard. In the RDLC report designer, replace the Base64 string with a file path or embed the new image directly.
  • Share via Email: Include the image in an email template or send it as an attachment to colleagues or customers.
  • Edit Further: Use another browser-based tool to resize, crop, or compress the image. For example, the Image Resizer can adjust the dimensions to fit a specific layout, while the Image Compressor can reduce the file size for faster loading.
  • Convert to Other Formats: If the decoded image is in an unsupported format (e.g., WebP), use the WebP Converter to change it to PNG or JPEG.

For example, if you’ve decoded a Base64 logo from an email, you can resize it to 200x200 pixels using the Image Resizer, then upload it to the company information page in Business Central. This ensures the logo displays correctly in all reports and documents.

Related guide: Convert Base64 to Image in Your Browser Without Uploading.

If you're weighing options, Shrink GIF Files Without Losing Animation Quality covers this in detail.

If you're weighing options, Extract a Color Palette from Any Image in Your Browser covers this in detail.