All eyes on AI: 2026 predictions – The shifts that will shape your stack.

Read now
For developersUse Redis with no setup required with Redis Sandbox
Prasan Rajpurohit
Prasan Rajpurohit
Redis Sandbox (also known as Redis Playground) is an interactive tool that lets you experiment with Redis commands in a safe, isolated environment—no setup required. Whether you're learning Redis, testing queries, or demonstrating features, Redis Sandbox is the perfect place to get hands-on experience.
Main features include:
  • Run read queries
  • Run write queries (session based)
  • View query history
  • Share queries (with or without modification)

#Accessing Redis Sandbox

Visit the Redis Sandbox at: https://redis.io/try/sandbox/
You'll be greeted with an interface designed for quick experimentation.
Redis Sandbox interactive interface overview

#Exploring the Interface

#Selecting a Predefined Query

  • Click Select query in the left sidebar.
Clicking the Select query button in the Redis Sandbox sidebar
  • A popup will appear with a list of predefined queries covering common Redis operations.
Popup menu showing a list of predefined Redis queries
  • Click any query to load it into the query editor.
Loading a selected query into the Redis Sandbox editor

#Writing Your Own Query

  • You can also type or paste your own Redis commands directly into the query editor.
  • The editor supports multi-line queries and syntax highlighting for better readability.

#Query Panel

  • Displays the currently selected or written query.
  • You can edit, run, or reset the query here.
Query panel displaying the currently active Redis command
Query panel control buttons for running and resetting queries

#DBIndex Panel

  • Shows index details related to the selected query.
DBIndex panel showing index metadata for the selected query

#DataSource Panel

  • Displays sample data associated with the selected query and index.
  • Helps you visualize the data your query will operate on.
DataSource panel visualizing sample data for the active query

#Run Query

  • Click the Run button to execute your query.
  • The results will appear in the Results panel.
Clicking the Run button to execute a Redis query

#Results Panel

  • View the output of your query in a structured table or as raw text.
Results panel displaying query output in a table format
  • Toggle between views using the Switch View icon in the Results panel header.
Switching between table and raw text views in the Results panel
Results panel raw text output view

#Share Query

  • Click the Share button to generate a shareable link for your current query.
  • You can also modify the query before sharing.
Generating a shareable link for a Redis query

#Reset Query

  • Made changes you want to undo? Click Reset to revert to the originally selected query.
Resetting the query editor to the originally selected query

#Navigating related queries

  • Quickly switch between related queries by clicking their names in the left sidebar.
Navigating related queries in the sidebar

#Query History

  • Click the history icon in the query panel header to view your past successful queries.
Accessing the query history from the header
Viewing a list of past successful Redis queries
  • Reload any previous query with a single click and run it again.
Reloading a query from history into the editor
  • Delete your query history if needed.
Deleting past queries from history

#Replay tour

  • Click Replay tour in the sidebar to revisit the guided walkthrough.
Selecting the Replay tour option from the sidebar

#Session (write) Queries

  • When you execute a write query, a unique session is created for you.
Sample write query:
Sample write query demonstrating the pg: key prefix
  • All subsequent queries in that session will operate on your session's data.
  • Sessions have an expiry setting; data is deleted after the session expires.
  • Note: Every key in your write query must use the pg: prefix.
Note: The session status is shown in the header
  • Before starting a session:
Session status indicator showing no active write session
  • After starting a session:
Session status indicator showing an active write session with TTL

#Resources