---
title: "JWT Generator Sign Custom Tokens HS - AllTools"
description: "AllTools issues JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing."
canonical_url: "https://tool.warmday.wang/en/dev/jwt-generator"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "AllTools issues JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "JWT Generator Sign Custom Tokens HS"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **JWT Generator**

Custom generation of JSON Web Tokens with support for multiple algorithms and keys.

### **Configuration**

**Algorithm**

**Secret**

Enter a string secret for signing

**Payload (JSON)**

**Expiration (exp)**

Leave empty to not set expiration. Time units listed below are supported.

**Supported Time Units for Expiration**

sseconds

mminutes

hhours

ddays

wweeks

yyears

msmilliseconds

Examples: 2h (2 hours), 30m (30 minutes), 7d (7 days), 3600 (number = seconds)

### **Generated Result**

### **Usage Guide**

#### **Features**

JWT Generator allows you to create JSON Web Tokens with custom payloads and signing algorithms, useful for development debugging and testing API authentication flows.

#### **Supported Algorithms**

- !**HMAC**: HS256, HS384, HS512 (uses shared secret)
- !**RSA**: RS256, RS384, RS512 (uses public/private key pair)
- !**ECDSA**: ES256, ES384, ES512 (uses elliptic curve keys)

#### **Usage**

1. !Select an **algorithm** (default: HS256).
2. !Enter a **secret** or **private key**. For HS256, any string works; for asymmetric algorithms like RS256, a PEM format private key is required.
3. !Edit JSON data in the **Payload** input box.
4. !(Optional) Set an **expiration time**, with the following time units supported:

`s` - seconds

`m` - minutes

`h` - hours

`d` - days

`w` - weeks

`y` - years

`ms` - milliseconds

`number` - seconds

Examples: 2h (2 hours), 30m (30 minutes), 7d (7 days), 1w (1 week), 3600 (3600 seconds = 1 hour)

5. !Click the **Generate Token** button, the result will appear on the right and can be copied with one click.

## **Related tools**

More from the same category · Developer Tools

[**Cron Expression**Visual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.](https://tool.warmday.wang/en/dev/cron) [**JSON Formatter**JSON beautify, minify and validate with auto error location for missing brackets and stray commas.](https://tool.warmday.wang/en/dev/json) [**Timestamp Converter**Convert Unix timestamps to dates and back with second/millisecond precision and live current time.](https://tool.warmday.wang/en/dev/timestamp) [**Regex Tester**Test regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.](https://tool.warmday.wang/en/dev/regex) [**JWT Parser**Split a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.](https://tool.warmday.wang/en/dev/jwt-parser) [**UUID Generator**Batch-generate v1, v4 and v5 UUIDs with or without hyphens for keys and distributed IDs.](https://tool.warmday.wang/en/dev/uuid)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/dev/jwt-generator#webpage","url":"https://tool.warmday.wang/en/dev/jwt-generator","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"JWT Generator Sign Custom Tokens HS","description":"AllTools issues JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/dev/jwt-generator#app","name":"JWT Generator Sign Custom Tokens HS","description":"AllTools issues JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing.","url":"https://tool.warmday.wang/en/dev/jwt-generator","applicationCategory":"DeveloperApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/dev/jwt-generator#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/dev/jwt-generator#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Developer Tools","item":"https://tool.warmday.wang/en/dev"},{"@type":"ListItem","position":3,"name":"JWT Generator","item":"https://tool.warmday.wang/en/dev/jwt-generator"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
