---
title: "BASE64_DECODE"
description: "La funzione SQL BASE64_DECODE converte un valore codificato in base64 nell\u0027oggetto binario originale, come definito nella RFC 4648."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/docs/invantive-universalsql/grammar/sql-functions/base64-decode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/base64-decode
updated: 2026-12-04T13:21:10Z
license: https://documentation.invantive.eu/it/
---

## Sintassi
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> BASE64_DECODE[BASE64_DECODE]:::quoted
    BASE64_DECODE --> End((END))
```

## Scopo
La funzione SQL `BASE64_DECODE` converte un valore codificato in base64 nell'oggetto binario, come definito nella [RFC 4648](https://www.rfc-editor.org/rfc/rfc4648).

Vedi anche [[BASE64_ENCODE]].

Parametri:
- Input (`varchar2`): valore da riconvertire nella forma originale.

Risultato: il valore di input ricodificato nel formato binario come `blob`.

## Esempi
`BASE64_DECODE` mappa il testo `aGk=` in un oggetto binario e successivamente in un testo nel set di caratteri ASCII a 7-bit:
```sql
select blob_to_text(base64_decode('aGk='), 'ASCII')

--------
hi
```
`BASE64_DECODE` mappa un testo codificato in base64 su un oggetto binario e poi su un testo utilizzando `TO_CHAR`:
```sql
select to_char(base64_decode('VGhpcyBpcyBhIGJhc2U2NCB0ZXN0'))

----------------------
This is a base64 test
```

