# Base64 and Hex Encoder/Decoder MCP for AI Agents MCP

> Base64 and Hex Encoder/Decoder MCP for quick text transformations between Base64, Base64URL, and Hexadecimal formats including byte size calculations.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_O4EeOfDGpKi0eijJM1lyzP2270LxlWSDIGgsAD14/mcp
- **Tags:** base64, hex, encoding, decoding, utility

## Description

This MCP handles the tedious work of converting strings between different encoding schemes. If you are working with web-safe data or debugging network payloads, you can use it to switch between plain text, Base64, Base64URL, and Hexadecimal without leaving your AI client. It also calculates exact UTF-8 byte sizes, which is a lifesaver when you need to stay within specific API payload limits. Instead of hunting for online converters that might leak your data, you can handle everything directly through Vinkius.

## Tools

### decode_base64
Turns a Base64 encoded string back into readable text.

### decode_base64url
Converts URL-safe Base64 strings into plain text.

### decode_hex
Translates hexadecimal values into standard characters.

### encode_base64
Transforms regular text into a Base64 format.

### encode_base64url
Prepares strings for web use by encoding them to Base64URL.

### encode_hex
Converts plain text into a hexadecimal string.

### get_byte_size
Calculates the exact number of bytes in a UTF-8 encoded string.

## Prompt Examples

**Prompt:** 
```
What is the hex version of 'hello'?
```

**Response:** 
```
The hexadecimal representation of 'hello' is `68656c6c6f`.
```

**Prompt:** 
```
How many bytes is this string: 'Vinkius'?
```

**Response:** 
```
The string 'Vinkius' is 7 bytes in UTF-8 encoding.
```

**Prompt:** 
```
Decode this Base64 for me: SGVsbG8=
```

**Response:** 
```
The decoded text is **Hello**.
```

## Capabilities

### Convert text formats
Switch between Base64, Hex, and URL-safe strings instantly.

### Check payload weight
Get the exact byte count of any string to prevent API errors.

### Decode obfuscated data
Turn encoded strings back into readable plain text.

## Use Cases

### Debugging network payloads
You find a strange string in a web request and ask your agent to use decode_base64 to see what is inside.

### Preparing API parameters
You need to send data via a URL and ask your agent to use encode_base64url to make it safe for transmission.

### Verifying database entries
A hex string looks wrong in your logs, so you ask your agent to use decode_hex to check the original value.

### Managing payload constraints
You have a strict 1KB limit and ask your agent to use get_byte_size to ensure your data fits.

## Benefits

- Avoid external websites by handling all encoding directly in your agent.
- Prevent API failures by using get_byte_size to check payload limits before sending requests.
- Ensure web compatibility when generating parameters with encode_base64url.
- Verify data integrity by decoding hex strings back to plain text.
- Keep sensitive data private by performing all transformations locally through your MCP.

## How It Works

The bottom line is you get reliable data transformations without external tools.

1. Connect your preferred AI client to Vinkius.
2. Ask your agent to encode or decode a specific string.
3. Receive the transformed text or byte size immediately.

## Frequently Asked Questions

**How can I use Base64 and Hex Encoder/Decoder to check my API limits?**
You can ask your agent to use the byte size tool on any string you are planning to send, ensuring it stays under your specific payload constraints.

**Is the Base64 and Hex Encoder/Decoder safe for sensitive tokens?**
Yes, because you are performing the transformations through your MCP rather than sending data to an external website or third-party converter.

**Can I use Base64 and Hex Encoder/Decoder for web development?**
Absolutely. You can quickly generate URL-safe strings using the encoding tools whenever you need to prepare parameters for a web request.

**Does Base64 and Hex Encoder/Decoder support different encodings?**
It specifically handles transformations between plain text, Base6 encoding, Base64URL, and hexadecimal formats.

**How do I decode a hex string with Base64 and Hex Encoder/Decoder?**
Simply provide the hex string to your agent and ask it to decode it; it will use the appropriate tool to return the readable text.

**Does this server require an API key?**
No, this server performs all mathematical conversions locally. No external APIs or authentication keys are required to use the encoding tools.

**How can I check the size of my encoded payload?**
You can use the `get_byte_size` tool to calculate exactly how many bytes a string occupies in UTF-8 encoding.

**Is Base64URL different from standard Base64?**
Yes, Base64URL is a variant of Base64 that replaces characters like '+' and '/' with '-' and '_' to ensure the string is safe for use in URLs.

**Is Base64URL different from standard Base64?**
Yes, Base64URL is a variant of Base64 that replaces characters like '+' and '/' with '-' and '_' to ensure the string is safe for use in URLs.