---
title: Export a variable
description: Export a dashboard variable in the InfluxDB user interface.
url: https://docs.influxdata.com/influxdb/v2/visualize-data/variables/export-variable/
estimated_tokens: 269
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/visualize-data/variables/export-variable/
date: '2026-09-01T21:31:19-05:00'
lastmod: '2026-09-01T21:31:19-05:00'
---

This page documents an earlier version of InfluxDB OSS.[InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

> [!Important]
> #### API token hashing is enabled by default in InfluxDB OSS 2.9.0
>
> Stronger token security: tokens are stored as hashes on disk, so a
> copy of the database file doesn’t expose usable tokens. Existing
> tokens are hashed on first startup and the original strings can’t
> be recovered afterward — **capture any plaintext tokens you still
> need before you upgrade**.
>
> For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Export dashboard variables from the InfluxDB user interface (UI).
Variables are exported as downloadable JSON files.

### Export a variable

1. Click the **Settings** icon in the navigation bar.

   Settings

2. Select the **Variables** tab.

3. Hover over a variable in the list, then click the gear icon ()
   and select **Export**.

4. Your browser downloads the variable JSON file.
   If prompted, choose a save location.

[variables](/influxdb/v2/tags/variables/)
