# editor: Add base64 encode/decode commands \(\#55361\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8d2238169555e403e2fc33a87533d220299e191d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8d2238169555e403e2fc33a87533d220299e191d

Requested commit: 8d2238169555e403e2fc33a87533d220299e191d

Commit: 8d2238169555e403e2fc33a87533d220299e191d

Tree: 45a01a52301794a48b5ff7a05eb14b9b87c94e7f

Author: Chris Kievit

Committer: GitHub

## Message

```
editor: Add base64 encode/decode commands (#55361)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Adds `editor: convert to base64` and `editor: convert from base64` to
the command palette. Both commands operate on the current selection, or
the word under the cursor when nothing is selected. The decode command
silently no-ops on invalid base64 input or non-UTF-8 decoded bytes,
consistent with how other convert commands handle untransformable input.

Release Notes:

- Added `editor: convert to base64` and `editor: convert from base64`
commands to the command palette

---------

Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
```

## Parents

- [62507a1930fb9a09a4ce9477fa40ed625ca670d9](https://git.cafe/gitcafe/zed/commit/62507a1930fb9a09a4ce9477fa40ed625ca670d9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8d2238169555e403e2fc33a87533d220299e191d?format=markdown)
