Search docs/
Getting StartedPlugins


This Plugin is used to encode base64 of any file, it uses js code for iOS, but in case of android it uses native code to handle android versions lower than v.3

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!


ionic cordova plugin add com-badrit-base64npm install @ionic-native/base64npm install com-badrit-base64npm install @ionic-native/base64ionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS


Using React?

See here.

import { Base64 } from '@ionic-native/base64/ngx';

constructor(private base64: Base64) { }


let filePath: string = 'file:///...';
this.base64.encodeFile(filePath).then((base64File: string) => {
}, (err) => {