Developers · Gutenberg

Base64 Encoder / Decoder block for WordPress

Encode plain text to Base64 or decode Base64 back to text. Supports Unicode, URL-safe Base64 and one-click copy.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Encode plain text to Base64 or decode Base64 back to text. Supports Unicode, URL-safe Base64 and one-click copy.

Inspector panels on this block: Tool Settings, Display Options, Sizing. Those titles come from index.js, not from a shared template.

Behavior controls: “Default Mode” options: Encode (Text → Base64), Decode (Base64 → Text).

Where to find it

Gutenberg inserter → Developers → search “Base64 Encoder / Decoder” (block name `blockenberg/base64-encoder` in block.json). Style it in the sidebar after insert.

How to use Base64 Encoder / Decoder block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Base64 Encoder / Decoder”, insert it. Category: Developers.
  3. Configure inspector controls that exist on this block. Open Tool Settings. Set “Default Mode”, “Prefilled Input”, “Show URL-safe option”, “Show line-break option”.
  4. Check the published page. The view script reads HTML data attributes: data-mode, data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Default ModeSelect control; the chosen value is saved on the block. Options: Encode (Text → Base64); Decode (Base64 → Text). block.json default: encode. Saved as `defaultMode`.
Prefilled InputText field in the inspector. Saved as `defaultInput`.
Show URL-safe optionOn/off toggle in the inspector. On by default. Saved as `showUrlSafe`.
Show line-break optionOn/off toggle in the inspector. On by default. Saved as `showLineBreaks`.
Show character statsOn/off toggle in the inspector. On by default. Saved as `showStats`.
Max Width (px)Numeric range control in the inspector. Range 400–1100. block.json default: 720. Saved as `contentMaxWidth`.
Typography — TitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `titleTypo`.
SubtitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `subtitleTypo`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Base64 Encoder / Decoder block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Base64 Encoder / Decoder”. It sits under Developers. After insert, open Tool Settings and set “Default Mode”, “Prefilled Input”, “Show URL-safe option”, “Show line-break option”.

What makes Base64 Encoder / Decoder different from other Blockenberg blocks?

Encode plain text to Base64 or decode Base64 back to text. Supports Unicode, URL-safe Base64 and one-click copy. Inspector labels on this block include “Default Mode”, “Prefilled Input”, “Show URL-safe option”, “Show line-break option”.

Is the Base64 Encoder / Decoder Gutenberg block free?

Yes. Base64 Encoder / Decoder ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Base64 Encoder / Decoder to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Tool Settings, Display Options, Sizing).

Related developers blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Base64 Encoder / Decoder from the Gutenberg inserter.

Get Blockenberg