Redis Connection String Generator
Generate connection strings for Redis in any format. Node.js, Python, Go, .NET, Java, and more.
Client-side only — nothing leaves your browser
redis://localhost:6379
What is a Redis Connection String?
A Redis connection string (URL) contains all the information needed to connect to a Redis server: host, port, password, database number, and TLS settings. Most Redis clients support the standard URI format: redis://[[user:]pass@]host[:port][/db].
TLS Options
- redis:// — No encryption (local development)
- rediss:// — TLS encrypted (Redis Cloud, ElastiCache, Azure)
Quick Reference
| Format | Example Pattern |
|---|---|
| Redis URI | redis://:password@host:6379/0 |
| Redis URI (TLS) | rediss://:password@host:6379/0 |
| Redis URI (ACL) | redis://user:password@host:6379/0 |
| .NET (StackExchange) | host:6379,password=pass,ssl=True,abortConnect=False |
| Node.js (ioredis) | redis://:password@host:6379/0 |
| Python (redis-py) | redis://:password@host:6379/0 |
| Go (go-redis) | redis://:password@host:6379/0 |
| Java (Jedis) | redis://:password@host:6379/0 |
Frequently Asked Questions
What is a Redis connection string?
A Redis connection string (also called a Redis URL) is a formatted string containing all the information needed to connect to a Redis server: host address, port (default 6379), password, database number, and optional TLS settings. The standard format is redis://[[username:]password@]host[:port][/database].
What is the difference between redis:// and rediss:// URLs?
The redis:// scheme is for unencrypted connections, while rediss:// (with double 's') is for TLS-encrypted connections. Use rediss:// when connecting to Redis Cloud, AWS ElastiCache with encryption, Azure Cache for Redis, or any Redis instance requiring TLS.
How do I connect to Redis in Docker?
Use 'localhost:6379' if you've mapped the port with -p 6379:6379. From another container in the same Docker network, use the container name as host: redis://redis-container:6379. For Docker Compose, use the service name as the host.
How do I connect to Azure Cache for Redis?
Get the connection string from Azure Portal > Access keys. Azure uses port 6380 for TLS. Format: rediss://:[email protected]:6380. For StackExchange.Redis: hostname:6380,password=accesskey,ssl=True,abortConnect=False.
What is abortConnect in StackExchange.Redis?
abortConnect=false tells StackExchange.Redis to retry connecting in the background rather than throwing an exception if the initial connection fails. This is recommended for cloud environments where transient failures are common.
Need a Redis GUI Client?
1bench is a modern database client for Redis and 20+ other databases. Query, browse, and manage your data visually.
Learn More