> For the complete documentation index, see [llms.txt](https://docs.floui.io/guia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.floui.io/guia/conectores/categorias/manipulacao-de-dados/base64.md).

# Base64

O componente Base64 é uma ferramenta versátil em nossa plataforma de integração que oferece codificação e decodificação eficientes de dados para e a partir do formato Base64.

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc4s3qI2ChaSOiUkepigz_dzz3YV8WXY-XNaJO6DDNoTAsyp549nUped_X8cUAcIxS5_F2AMbgZNII1vZZf1vIZmWbUJFo2PedcyWd5hqxHuo_Tdqb6i-80hSpCak0IU1DFHRhM?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo        | Tipo           | Descrição                                                                                                                                                                           |
| ------------ | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Descrição    | Campo de texto | Descrição visual do conector na construção do fluxo.                                                                                                                                |
| Modo         | Seletor        | <p>Permite selecionar o modo de decodificação/codificação, entre:</p><ul><li>De Base64 para texto;</li><li>De Base64 para binário (buffer);</li><li>De texto para Base64;</li></ul> |
| Conteúdo     | Campo de texto | Conteúdo que será codificado/decodificado.                                                                                                                                          |
| Output Path  | Campo de texto | Refere-se ao caminho de saída do conteúdo codificado/decodificado no contexto de execução do conector.                                                                              |
| {% endtab %} |                |                                                                                                                                                                                     |

{% tab title="Payload" %}

## Sucesso

Ao ser executado, o conector Base64 irá realizar a codificação ou decodificação do conteúdo de entrada e disponibilizará este conteúdo no caminho de saída do conector.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf4QNG2reX812kqH2_258h2M_8SdDrqu5PZvrlvG3UjrFgl_YSdyym9ix868rdeOEPiPHRlKUzUxhG4fG5eC5OckBNzXp5-xrpW-Ez9A-7XdFbICK2Pa_p0ZlhhCmK9DuDb5hYARA?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Conversão de texto para Base64.</p></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcnUAd8YStsmtGJjiOFxRR0XTTjxHKTsxdK8UVfEIDYqBy-B5BklWjIbfMURf-DTazyC2N30395-lmON5RArXDTH4gC2DeKHTQ648eeAGunAoKKMdrIX3q5VxKiLzWoaRF2ilAZ?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Conversão de Base64 para texto.</p></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeRswPUCVtB94A1idZF0XjL9ZeeoQlXUN9upQ3B_giufB4mQvA54zFJkxViyOwqX4Ay-bvE8q4CFCObRNss7O0_vS5bBcHz-okwJxVMBGb2oaE_r6YBK0nY2C_czTH76ggeGYBx?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Conversão de Base64 para Binário (buffer).</p></figcaption></figure>

## Suporte a DataURI

O conector Base64 também suporta a entrada de dados no formato Base64 DataURI. A estrutura básica de um Data URI Base64 segue o formato abaixo:&#x20;

`data:[<MIME-type>][;charset=<encoding>][;base64],<data>`

* data: → Indica que é um Data URI.
* \<MIME-type> → Define o tipo de mídia do conteúdo embutido (por exemplo, image/png, text/plain, application/json).
* charset=\<encoding> (Opcional) → Para textos, pode indicar a codificação (UTF-8, por exemplo).
* ;base64 (Opcional) → Indica que os dados estão codificados em Base64 (se ausente, os dados são em texto).
* \<data> → A string Base64 ou dados diretamente inseridos.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcBBTXrGTUo4FTtF4p3M5zZOfLiw-ngY177qGHwGXhgXkzFAhbXOpYyZsOguBTWo68QPwoVQ7TtHuPlae4iBHFcstJL0s_gyK4eIyJl9OXP4OwQ9dcqHwl2Mwd0wqhOVinrR7oM?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Leitura de DataURI e conversão para texto</p></figcaption></figure>

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.floui.io/guia/conectores/categorias/manipulacao-de-dados/base64.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
