JavaScript Playground

Write and execute JavaScript code in real-time with live console output

Code Editor
Console Output

ℹ️ Tips:

  • Use console.log() to print output
  • Supports all JavaScript ES6+ features
  • Use console.error() for error messages (red)
  • Use console.warn() for warnings (yellow)
  • Results appear instantly in console

Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates

Leave empty for current time

Date to Timestamp Converter

Current Time

Local Time
--:--:--
UTC Time
--:--:--
Unix Timestamp
0

JSON Formatter & Validator

Format, minify, and validate JSON data

Regex Pattern Tester

Test regular expressions against text patterns

Enter a valid regex pattern (without delimiters)

Common Regex Patterns

Email Address

^[^\s@]+@[^\s@]+\.[^\s@]+$

URL

https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b

Phone Number

^\+?[\d\s\-\(\)]{7,}$

Password (8+ chars)

^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$

Hex Color Code

^#?([a-f0-9]{6}|[a-f0-9]{3})$

Alphanumeric Only

^[a-zA-Z0-9]+$

Click a pattern to copy it to the pattern field

Current Time in Different Timezones

View current time across multiple timezones

Use IANA timezone format

Base64 Encoder / Decoder

Encode text to Base64 or decode from Base64

URL Encoder / Decoder

Encode or decode URL components

Color Converter

Convert between HEX and RGB color formats

String Utilities

Transform and manipulate text strings

Characters

0

Words

0

UUID Generator

Generate random universally unique identifiers

Password Generator

Create secure random passwords