--- title: WindowBase64 slug: Web/API/WindowBase64 tags: - API translation_of: Web/API/WindowOrWorkerGlobalScope translation_of_original: Web/API/WindowBase64 ---
{{APIRef("HTML DOM")}}
The WindowBase64
helper contains utility methods to convert data to and from base64, a binary-to-text encoding scheme. For example it is used in data URIs.
There is no object of this type, though the context object, either the {{domxref("Window")}} for regular browsing scope, or the {{domxref("WorkerGlobalScope")}} for workers, implements it.
This helper neither defines nor inherits any properties.
This helper does not inherit any methods.
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', '#windowbase64', 'WindowBase64')}} | {{Spec2('HTML WHATWG')}} | No change since the latest snapshot, {{SpecName("HTML5.1")}}. |
{{SpecName('HTML5.1', '#windowbase64', 'WindowBase64')}} | {{Spec2('HTML5.1')}} | Snapshot of {{SpecName("HTML WHATWG")}}. No change. |
{{SpecName("HTML5 W3C", "#windowbase64", "WindowBase64")}} | {{Spec2('HTML5 W3C')}} | Snapshot of {{SpecName("HTML WHATWG")}}. Creation of WindowBase64 (properties where on the target before it). |
{{CompatibilityTable}}
Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatGeckoDesktop(1)}} [1] | {{CompatVersionUnknown}} | 10.0 | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
Feature | Firefox Mobile (Gecko) | Android | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatGeckoMobile(1)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
[1] atob()
is also available to XPCOM components implemented in JavaScript, even though {{domxref("Window")}} is not the global object in components.