Romaji2Kana API

The powerful REST API can do a lot more than the user interface and lets you integrate various conversion and validation functionalities into your own projects.

conversion endpoints
GET /v1/to/kana

Convert input to Kana (Hiragana and/or Katakana)

This endpoint allows you to convert the lowercase parts of a given input to Hiragana and the uppercase written to Katakana.

Parameters

q
string
The text of interest.

Behaviour

This behaves exactly like the user interface of the website, except that it differentiates between upper and lower case letters and translates to Hiragana or Katakana accordingly.

Request

https://api.romaji2kana.com/v1/to/kana?q=Hajimemashite. REANDA-san desu. Yoroshiku onegai shimasu.
Copied!

Response

{"a":"はじめまして。 レアンダーさん です。 よろしく おねがい します。"}
Copied!
GET /v1/to/hiragana

Convert input to Hiragana

This endpoint allows you to convert a given input to Hiragana.

Parameters

q
string
The text of interest.

Behaviour

This behaves exactly like the user interface of the website.

Request

https://api.romaji2kana.com/v1/to/hiragana?q=Ohayou gozaimasu.
Copied!

Response

{"a":"おはよう ございます。"}
Copied!
GET /v1/to/katakana

Convert input to Katakana

This endpoint allows you to convert a given input to Katakana.

Parameters

q
string
The text of interest.

Behaviour

This behaves exactly like the user interface of the website.

Request

https://api.romaji2kana.com/v1/to/katakana?q=aisukuri-mu
Copied!

Response

{"a":"アイスクリーム"}
Copied!
GET /v1/to/romaji

Convert input to Romaji

This endpoint allows you to convert a given input to Romaji.

Parameters

q
string
The text of interest.

Behaviour

This behaves exactly like the user interface of the website, except that it converts Hiragana and Katakana alike - they may both be contained in the input.

Request

https://api.romaji2kana.com/v1/to/romaji?q=りんごと オレンジを かって ください。
Copied!

Response

{"a":"ringoto orenjiwo katte kudasai."}
Copied!
validation endpoints
GET /v1/is/japanese

Test if input is Japanese

This endpoint allows you to check if a given input includes only Kanji, Kana, zenkaku numbers and Japanese punctuation marks.

Parameters

q
string
The text of interest.

Attention

Japanese does not use any spaces.

Request

https://api.romaji2kana.com/v1/is/japanese?q=お元気ですか?
Copied!

Response

{"a":true}
Copied!
GET /v1/is/kana

Test if input is Kana (Hiragana and/or Katakana)

This endpoint allows you to check if a given input includes only Hiragana or Katakana characters.

Parameters

q
string
The text of interest.

Attention

Spaces or punctuation marks are not allowed - only Kana.

Request

https://api.romaji2kana.com/v1/is/kana?q=アメリカじん
Copied!

Response

{"a":true}
Copied!
GET /v1/is/hiragana

Test if input is Hiragana

This endpoint allows you to check if a given input includes only Hiragana characters.

Parameters

q
string
The text of interest.

Attention

Spaces or punctuation marks are not allowed - only Hiragana.

Request

https://api.romaji2kana.com/v1/is/hiragana?q=ゆうびんきょく
Copied!

Response

{"a":true}
Copied!
GET /v1/is/katakana

Test if input is Katakana

This endpoint allows you to check if a given input includes only Katakana characters.

Parameters

q
string
The text of interest.

Attention

Spaces or punctuation marks are not allowed - only Katakana.

Request

https://api.romaji2kana.com/v1/is/katakana?q=アイスクリーム
Copied!

Response

{"a":true}
Copied!
GET /v1/is/romaji

Test if input is Romaji

This endpoint allows you to check if a given input includes only characters, that appear in modern English (Latin letters and special symbols) or in Hepburn romanization.

Parameters

q
string
The text of interest.

Additional characters

Hepburn romanization adds the characters Ā/ā, Ē/ē, Ī/ī, Ō/ō and Ū/ū to the mix.

Request

https://api.romaji2kana.com/v1/is/romaji?q=Tōkyō is #great!
Copied!

Response

{"a":true}
Copied!
GET /v1/is/mixed

Test if input is Mixed (Romaji and/or Kana)

This endpoint allows you to check if a given input includes both Romaji and Kana characters (and optionally some Kanji).

Parameters

q
string
The text of interest.

Kanji characters

The Chinese-derived Kanji characters used in Japanese writing are ignored. There still needs to be at least one Romaji and one Kana contained in the input.

Request

https://api.romaji2kana.com/v1/is/mixed?q=私はLeanderさんです。
Copied!

Response

{"a":true}
Copied!